diff options
author | typebrook <typebrook@gmail.com> | 2020-01-16 11:30:40 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-01-16 11:30:40 +0800 |
commit | 60ed93757f1a741f3e651ba203b7bc50fb1f9369 (patch) | |
tree | 350cbc5a0daa94c7d0a752253a72714eccfbbc0a | |
parent | 51f2b2e3dc21bad9c86be135cc73109bb0c03ffa (diff) |
update
-rw-r--r-- | alias | 2 | ||||
-rwxr-xr-x | scripts/gist | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -18,7 +18,7 @@ alias ve='vim ~/.vim_runtime/my_configs.vim' | |||
18 | alias vr='vim -R' | 18 | alias vr='vim -R' |
19 | alias cdv='cd ~/.vim_runtime' # amix/vimrc repo | 19 | alias cdv='cd ~/.vim_runtime' # amix/vimrc repo |
20 | vs() { | 20 | vs() { |
21 | vim $(which $1) | 21 | if ( which $1 ); then vim $(which $1); fi |
22 | } | 22 | } |
23 | 23 | ||
24 | # shell | 24 | # shell |
diff --git a/scripts/gist b/scripts/gist index 2369fca..bd37b1e 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -74,6 +74,7 @@ _update() { | |||
74 | echo $line_num $link $blob_code $file_num $comment_num $(echo $description | cut -c -70) | tr -d '"' | 74 | echo $line_num $link $blob_code $file_num $comment_num $(echo $description | cut -c -70) | tr -d '"' |
75 | done > $index && \ | 75 | done > $index && \ |
76 | _show_list | 76 | _show_list |
77 | (_sync_repos > /dev/null 2>&1 &) | ||
77 | } | 78 | } |
78 | 79 | ||
79 | _sync_repos() { | 80 | _sync_repos() { |