Change rm confirm flag based on os

This commit is contained in:
Alexander Rosenberg 2022-08-29 00:39:59 -07:00
parent 9b843e6f51
commit d1969da725
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -42,7 +42,9 @@ alias cd..="cd .."
export LESS="--mouse"
# 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 mv="mv -i"