diff options
| author | hc <hc@email.ch> | 2026-03-23 20:16:45 +0800 |
|---|---|---|
| committer | hc <hc@email.ch> | 2026-03-23 20:16:45 +0800 |
| commit | 74cebff472e561dc275738833d2a77896e1e7cbc (patch) | |
| tree | 54c0b169c9affd7924a146a44a843022ceec40a6 /mac | |
| parent | 4d691bef38bcc7e627e6267ca07bce99a2bde128 (diff) | |
move dotfiles into mac/ dir
Diffstat (limited to 'mac')
| -rw-r--r-- | mac/quickstart | 2 | ||||
| -rw-r--r-- | mac/tmux.conf | 11 | ||||
| -rw-r--r-- | mac/vimrc | 51 |
3 files changed, 64 insertions, 0 deletions
diff --git a/mac/quickstart b/mac/quickstart new file mode 100644 index 0000000..29b924b --- /dev/null +++ b/mac/quickstart | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | SSH_KEY=~/macm4-resident; SSH_HOST=root@p.noml.ch; ssh-agent bash -c "ssh-add $SSH_KEY && git push" | ||
| 2 | while true; do nc -l -p 5023 | openssl enc -d -aes-256-cbc -pbkdf2 -pass pass:YourPassword | pbcopy; done | ||
diff --git a/mac/tmux.conf b/mac/tmux.conf new file mode 100644 index 0000000..fc4b931 --- /dev/null +++ b/mac/tmux.conf | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | # Vi mode for copy | ||
| 2 | setw -g mode-keys vi | ||
| 3 | |||
| 4 | # Mouse selection | ||
| 5 | set -g mouse on | ||
| 6 | |||
| 7 | # v to start selection, y to yank (like vim) | ||
| 8 | bind-key -T copy-mode-vi v send-keys -X begin-selection | ||
| 9 | bind-key -T copy-mode-vi y send-keys -X copy-pipe-no-clear "pbcopy" | ||
| 10 | bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-no-clear "pbcopy" | ||
| 11 | bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "pbcopy" | ||
diff --git a/mac/vimrc b/mac/vimrc new file mode 100644 index 0000000..c45cfc9 --- /dev/null +++ b/mac/vimrc | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | |||
| 2 | " Enable line wrapping | ||
| 3 | set wrap | ||
| 4 | |||
| 5 | " Optional: Make wrapped lines easier to read by indenting them | ||
| 6 | set breakindent | ||
| 7 | set breakindentopt=shift:1 | ||
| 8 | |||
| 9 | syntax on | ||
| 10 | set autoindent | ||
| 11 | set number | ||
| 12 | set mouse=a | ||
| 13 | set expandtab | ||
| 14 | set shiftwidth=4 | ||
| 15 | set softtabstop=4 | ||
| 16 | set tabstop=4 | ||
| 17 | |||
| 18 | set autoindent | ||
| 19 | set smartindent | ||
| 20 | filetype plugin indent on | ||
| 21 | |||
| 22 | set laststatus=2 " permanent status bar | ||
| 23 | set statusline=%F " shows full file path | ||
| 24 | |||
| 25 | if (has("termguicolors")) | ||
| 26 | set termguicolors | ||
| 27 | endif | ||
| 28 | |||
| 29 | colorscheme zellner | ||
| 30 | "colorscheme evening | ||
| 31 | |||
| 32 | " Ctrl+A: Move to the beginning of the line in INSERT mode | ||
| 33 | inoremap <C-a> <Home> | ||
| 34 | |||
| 35 | " Ctrl+E: Move to the end of the line in INSERT mode | ||
| 36 | inoremap <C-e> <End> | ||
| 37 | |||
| 38 | " Ctrl+A: Move to the beginning of the line in NORMAL mode | ||
| 39 | nnoremap <C-a> 0 | ||
| 40 | |||
| 41 | " Ctrl+E: Move to the end of the line in NORMAL mode | ||
| 42 | nnoremap <C-e> $ | ||
| 43 | set clipboard=unnamed,unnamedplus | ||
| 44 | setlocal regexpengine=2 | ||
| 45 | set hlsearch | ||
| 46 | set foldcolumn=12 " Creates a small left margin of 2 columns | ||
| 47 | set noswapfile | ||
| 48 | autocmd InsertLeave * silent! update | ||
| 49 | |||
| 50 | |||
| 51 | |||
