diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..3f8b25a --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,34 @@ +# Prefix +# ----------------- +set-option -g prefix C-x +unbind C-b +bind C-x send-prefix + +# Index +# ----------------- +set -g base-index 1 +set -g pane-base-index 1 + +# History +# ----------------- +set -g history-limit 4096 + +# Reload Config +# ----------------- +bind r source-file ~/.tmux.conf \; display "Reloaded Config" + +# Vi Mode +# ----------------- +set -g status-keys vi +set-window-option -g mode-keys vi + +# Windows Management +# ----------------- +bind | split-window -h +unbind '"' +bind - split-window -v +unbind % +bind h select-pane -L + + + diff --git a/mac/karabiner/caps_to_esc_lcmd.json b/mac/karabiner/caps_to_esc_lcmd.json new file mode 100644 index 0000000..9723e0b --- /dev/null +++ b/mac/karabiner/caps_to_esc_lcmd.json @@ -0,0 +1,26 @@ +{ + "description": "CapsLock to ESC (alone) or LCommand (withKeys)", + "manipulators": [ + { + "from": { + "key_code": "caps_lock", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_command" + } + ], + "to_if_alone": [ + { + "key_code": "escape" + } + ], + "type": "basic" + } + ] +} \ No newline at end of file diff --git a/mac/karabiner/emacs_basic.json b/mac/karabiner/emacs_basic.json new file mode 100644 index 0000000..9e8764b --- /dev/null +++ b/mac/karabiner/emacs_basic.json @@ -0,0 +1,121 @@ +{ + "description": "lctrl + p/n/b/f/a/e to up/down/left/right/home/end", + "manipulators": [ + { + "from": { + "key_code": "p", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "up_arrow" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "n", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "down_arrow" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "b", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_arrow" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "f", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_arrow" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "a", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_arrow", + "modifiers": "command" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "e", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_arrow", + "modifiers": "command" + } + ], + "type": "basic" + } + ] +} \ No newline at end of file diff --git a/mac/karabiner/fn-tab_to_cmd-tab.json b/mac/karabiner/fn-tab_to_cmd-tab.json new file mode 100644 index 0000000..fadf814 --- /dev/null +++ b/mac/karabiner/fn-tab_to_cmd-tab.json @@ -0,0 +1,24 @@ +{ + "description": "Map fn+tab to cmd+tab", + "manipulators": [ + { + "from": { + "key_code": "tab", + "modifiers": { + "mandatory": [ + "fn" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + } + ] +} \ No newline at end of file diff --git a/win/Microsoft.PowerShell_profile.ps1 b/win/Microsoft.PowerShell_profile.ps1 index 76f31bc..72d2ccb 100644 --- a/win/Microsoft.PowerShell_profile.ps1 +++ b/win/Microsoft.PowerShell_profile.ps1 @@ -135,6 +135,10 @@ if (-not ($__lastStartup -eq $_currentDate)) { $_currentDate | Out-File -FilePath $SystemlogFilePath -Append } +Remove-Variable SystemlogFilePath +Remove-Variable __lastStartup +Remove-Variable _currentDate + ## Chocolatey ## $ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"