Change rm confirm flag based on os
This commit is contained in:
parent
9b843e6f51
commit
d1969da725
4
init.zsh
4
init.zsh
@ -42,7 +42,9 @@ alias cd..="cd .."
|
|||||||
export LESS="--mouse"
|
export LESS="--mouse"
|
||||||
|
|
||||||
# Safer file functions
|
# Safer file functions
|
||||||
alias rm="rm -I"
|
local rm_confirm_flag='-i'
|
||||||
|
uname | grep linux && rm_confirm_flag='-I'
|
||||||
|
alias rm="rm ${rm_confirm_flag}"
|
||||||
alias cp="cp -i"
|
alias cp="cp -i"
|
||||||
alias mv="mv -i"
|
alias mv="mv -i"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user