diff options
Diffstat (limited to 'alias')
-rw-r--r-- | alias | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -93,6 +93,15 @@ vp() { | |||
93 | # }}} | 93 | # }}} |
94 | # UNIX {{{ | 94 | # UNIX {{{ |
95 | 95 | ||
96 | rm() { | ||
97 | target=${@: -1} | ||
98 | list=~/helper/.unremovable | ||
99 | if [[ $@ =~ '-rf' ]] && [ -f "${list}" ]; then | ||
100 | grep target $list && echo target unremovable && exit 1 | ||
101 | fi | ||
102 | |||
103 | /bin/rm $@ | ||
104 | } | ||
96 | config(){ cd ~/.config/$1; } | 105 | config(){ cd ~/.config/$1; } |
97 | alias sound="echo -ne '\a'" | 106 | alias sound="echo -ne '\a'" |
98 | alias hg='history | grep' | 107 | alias hg='history | grep' |
@@ -340,6 +349,7 @@ else | |||
340 | alias v='vim' | 349 | alias v='vim' |
341 | fi | 350 | fi |
342 | alias vu='vim -u NONE' | 351 | alias vu='vim -u NONE' |
352 | alias sv='sudo vim' | ||
343 | alias vr='vim -R' | 353 | alias vr='vim -R' |
344 | # Edit last file | 354 | # Edit last file |
345 | alias vl="vim -c 'norm '" | 355 | alias vl="vim -c 'norm '" |