From 1515ec7adf8ed46aab964c8ffcd8b677b76c5104 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 27 Nov 2022 01:16:01 +0300 Subject: [PATCH] .shellrc: Run `/bin/rm` instead of just `rm` On some systems `rm` is an interactive alias that runs `rm -i`. --- .shellrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5