diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2020-10-19 10:30:36 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2020-10-19 10:30:41 +0800 |
commit | 43d41eee788a0c3e6e99f32d9d4da9332fd6cc5b (patch) | |
tree | e321ab7ff6fffe9de05c8aa3aa907a54f4c97719 /alias | |
parent | 47a78ff69a76be47f69bbe63980900cd9f5f5452 (diff) |
Update
Diffstat (limited to 'alias')
-rw-r--r-- | alias | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -14,8 +14,9 @@ alias log="cat $SETTING_DIR/log | grep '`date +'%b %d'`'" | |||
14 | # vim | 14 | # vim |
15 | alias v='vim' | 15 | alias v='vim' |
16 | alias sv='sudo vim' | 16 | alias sv='sudo vim' |
17 | alias vv='vim ~/vimwiki/index.md' | 17 | alias vl="vim -c ':CtrlPMRU<CR>'" |
18 | alias vr='vim -R' | 18 | alias vr='vim -R' |
19 | alias vv='vim ~/vimwiki/index.md' | ||
19 | alias cdv='cd ~/.vim_runtime' # amix/vimrc repo | 20 | alias cdv='cd ~/.vim_runtime' # amix/vimrc repo |
20 | 21 | ||
21 | # for custom scripts | 22 | # for custom scripts |
@@ -112,8 +113,8 @@ alias cdgw='cdgg && cd .github/workflows' | |||
112 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule | 113 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule |
113 | 114 | ||
114 | # github | 115 | # github |
115 | GITHUB_API='https://api.github.com' | 116 | export GITHUB_API='https://api.github.com' |
116 | GITHUB_API_TOKEN=$(cat $SETTING_DIR/tokens/github 2>/dev/null) | 117 | export GITHUB_API_TOKEN=$(cat $SETTING_DIR/tokens/github 2>/dev/null) |
117 | alias hub="GITHUB_TOKEN=$GITHUB_API_TOKEN hub" | 118 | alias hub="GITHUB_TOKEN=$GITHUB_API_TOKEN hub" |
118 | alias github_token='xdg-open https://github.com/settings/tokens' | 119 | alias github_token='xdg-open https://github.com/settings/tokens' |
119 | github() { | 120 | github() { |