From: Oleg Broytman Date: Sat, 26 Nov 2022 22:16:01 +0000 (+0300) Subject: .shellrc: Run `/bin/rm` instead of just `rm` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=1515ec7adf8ed46aab964c8ffcd8b677b76c5104;p=dotfiles.git .shellrc: Run `/bin/rm` instead of just `rm` On some systems `rm` is an interactive alias that runs `rm -i`. --- diff --git a/.shellrc b/.shellrc index 3e238bd..944d2f6 100644 --- a/.shellrc +++ b/.shellrc @@ -168,13 +168,13 @@ fi vim() { command vim "$@" rc=$? - cd "`cat \"$HOME/tmp/vim/cwd\"`" && rm "$HOME/tmp/vim/cwd" && + cd "`cat \"$HOME/tmp/vim/cwd\"`" && /bin/rm "$HOME/tmp/vim/cwd" && return $rc } if [ "$SHLVL" -eq 1 ] && which startx >/dev/null 2>&1; then - X() { startx >> .Xserver.log 2>&1; cyr; rm -f .Xauthority; } + X() { startx >> .Xserver.log 2>&1; cyr; /bin/rm -f .Xauthority; } fi x() { exit; }