]> git.phdru.name Git - dotfiles.git/commitdiff
.shellrc: Run `/bin/rm` instead of just `rm`
authorOleg Broytman <phd@phdru.name>
Sat, 26 Nov 2022 22:16:01 +0000 (01:16 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 26 Nov 2022 22:16:01 +0000 (01:16 +0300)
On some systems `rm` is an interactive alias that runs `rm -i`.

.shellrc

index 3e238bd5546ca21863eae260caee660686c47598..944d2f631326f04f58168a1cefa5fbd13f56ae4c 100644 (file)
--- 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; }