diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-12-08 21:17:49 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-12-08 21:17:49 +0800 |
commit | bdf123c37e793f3e70f41f59a265d9aaf96b26f0 (patch) | |
tree | e6cc614e6b5a18407df6ae3646482fc194e1e32a | |
parent | cc478aa1b575f041c2e683839a1ea271e147c403 (diff) |
update
-rw-r--r-- | alias | 7 | ||||
-rw-r--r-- | misc/tmux.conf | 8 |
2 files changed, 10 insertions, 5 deletions
@@ -27,6 +27,11 @@ alias vq='vim ~/buffer' | |||
27 | alias cdv='cd ~/.vim_runtime' # amix/vimrc repo | 27 | alias cdv='cd ~/.vim_runtime' # amix/vimrc repo |
28 | alias vgx='sudo vim /etc/nginx/sites-enabled/* && sudo nginx -t && sudo systemctl reload nginx' | 28 | alias vgx='sudo vim /etc/nginx/sites-enabled/* && sudo nginx -t && sudo systemctl reload nginx' |
29 | 29 | ||
30 | # ssh | ||
31 | sshtar() { | ||
32 | prompt "tar cf - foo | ssh topo 'cd ~/Downloads; tar xf -'" | ||
33 | } | ||
34 | |||
30 | # for custom scripts | 35 | # for custom scripts |
31 | vs() { | 36 | vs() { |
32 | which $1 && vim $(which $1) | 37 | which $1 && vim $(which $1) |
@@ -199,7 +204,7 @@ cdss() { | |||
199 | # about vimwiki | 204 | # about vimwiki |
200 | alias cdw='cd ~/vimwiki' | 205 | alias cdw='cd ~/vimwiki' |
201 | alias chw='cd ~/vimwiki && tig --all' | 206 | alias chw='cd ~/vimwiki && tig --all' |
202 | wg() { | 207 | wgg() { |
203 | vim ~/vimwiki/${1%%.md}.md | 208 | vim ~/vimwiki/${1%%.md}.md |
204 | } | 209 | } |
205 | wi() { | 210 | wi() { |
diff --git a/misc/tmux.conf b/misc/tmux.conf index 4bba128..b620d5f 100644 --- a/misc/tmux.conf +++ b/misc/tmux.conf | |||
@@ -1,7 +1,7 @@ | |||
1 | new-session # Start a new session if none available | 1 | new-session # Start a new session if none available |
2 | bind M-q select-layout even-horizontal | 2 | bind C-q select-layout even-horizontal |
3 | bind M-w select-layout even-vertical | 3 | bind C-w select-layout even-vertical |
4 | bind M-e select-layout main-horizontal | 4 | bind C-e select-layout main-horizontal |
5 | bind M-r select-layout main-vertical | 5 | bind C-r select-layout main-vertical |
6 | bind N new-session | 6 | bind N new-session |
7 | bind-key -n C-F3 set-option -g status #Ctrl+F3 Combo | 7 | bind-key -n C-F3 set-option -g status #Ctrl+F3 Combo |