aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-01-16 11:30:40 +0800
committertypebrook <typebrook@gmail.com>2020-01-16 11:30:40 +0800
commit60ed93757f1a741f3e651ba203b7bc50fb1f9369 (patch)
tree350cbc5a0daa94c7d0a752253a72714eccfbbc0a
parent51f2b2e3dc21bad9c86be135cc73109bb0c03ffa (diff)
update
-rw-r--r--alias2
-rwxr-xr-xscripts/gist1
2 files changed, 2 insertions, 1 deletions
diff --git a/alias b/alias
index ba2c831..2875877 100644
--- a/alias
+++ b/alias
@@ -18,7 +18,7 @@ alias ve='vim ~/.vim_runtime/my_configs.vim'
18alias vr='vim -R' 18alias vr='vim -R'
19alias cdv='cd ~/.vim_runtime' # amix/vimrc repo 19alias cdv='cd ~/.vim_runtime' # amix/vimrc repo
20vs() { 20vs() {
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() {