Fix rm -I flag on linux
This commit is contained in:
parent
cadec731af
commit
657eab51d0
2
init.zsh
2
init.zsh
@ -50,7 +50,7 @@ export LESS="--mouse"
|
|||||||
|
|
||||||
# Safer file functions
|
# Safer file functions
|
||||||
local rm_confirm_flag='-i'
|
local rm_confirm_flag='-i'
|
||||||
uname | grep linux && rm_confirm_flag='-I'
|
uname | grep -i linux && rm_confirm_flag='-I'
|
||||||
alias rm="rm ${rm_confirm_flag}"
|
alias rm="rm ${rm_confirm_flag}"
|
||||||
alias cp="cp -i"
|
alias cp="cp -i"
|
||||||
alias mv="mv -i"
|
alias mv="mv -i"
|
||||||
|
Loading…
Reference in New Issue
Block a user