feat(aliasrc): use trash instead of rm if available
This commit is contained in:
parent
4c92898cae
commit
57288bb435
1 changed files with 8 additions and 1 deletions
|
@ -77,7 +77,14 @@ alias p='ps -f'
|
||||||
alias sortnr='sort -n -r'
|
alias sortnr='sort -n -r'
|
||||||
alias unexport='unset'
|
alias unexport='unset'
|
||||||
|
|
||||||
|
# Use trash instead of rm if available
|
||||||
|
if command -v trash &> /dev/null
|
||||||
|
then
|
||||||
|
alias rm='trash'
|
||||||
|
else
|
||||||
alias rm='rm -i'
|
alias rm='rm -i'
|
||||||
|
fi
|
||||||
|
|
||||||
alias cp='cp -i'
|
alias cp='cp -i'
|
||||||
alias mv='mv -i'
|
alias mv='mv -i'
|
||||||
|
|
||||||
|
|
Reference in a new issue