diff options
| author | typebrook <typebrook@gmail.com> | 2020-01-21 01:26:42 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-01-21 01:26:42 +0800 |
| commit | 73f17d1f4a4cb1c467472a0e728971124199c233 (patch) | |
| tree | 908916790ed93d0968de8d3d5f04f7c99fbf316d /alias | |
| parent | a90074c95adb8fd231fda4cde428992e6f8bbbbb (diff) | |
update
Diffstat (limited to 'alias')
| -rw-r--r-- | alias | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -17,8 +17,17 @@ alias vv='vim ~/vimwiki/index.md' | |||
| 17 | alias ve='vim ~/.vim_runtime/my_configs.vim' | 17 | 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 | |||
| 21 | # script | ||
| 20 | vs() { | 22 | vs() { |
| 21 | if ( which $1 ); then vim $(which $1); fi | 23 | ( which $1 ) && vim $(which $1) |
| 24 | } | ||
| 25 | todo() { | ||
| 26 | ( which $1 ) && grep -Po 'TODO.*' $(which $1) | ||
| 27 | } | ||
| 28 | |||
| 29 | fix() { | ||
| 30 | ( which $1 ) && grep -Po 'FIXME.*' $(which $1) | ||
| 22 | } | 31 | } |
| 23 | 32 | ||
| 24 | # shell | 33 | # shell |