Skip to content

Commit

Permalink
Fix safety-net aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Jun 15, 2024
1 parent c22b7b1 commit 96ca781
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions home/users/christian/shell/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
ps = "ps auxf";
psg = "ps aux | grep -v grep | grep -i -e VSZ -e";

# Safety nets
cp = "cp -i";
mv = "mv -i";
rm = "rm -I --preserve-root=all --one-file-system";

# Navigating
"cd.." = "cd ..";
d = "dirs -v | head -10";
Expand Down Expand Up @@ -51,9 +56,6 @@
myip = "curl http://ipecho.net/plain; echo";
} // lib.mkIf (!stdenv.isDarwin) {
# Safety nets
cp = "cp --interactive=once";
mv = "mv --interactive=once";
rm = "rm --interactive=once --preserve-root=all --one-file-system";
chgrp = "chgrp --preserve-root";
chmod = "chmod --preserve-root";
chown = "chown --preserve-root";
Expand Down

0 comments on commit 96ca781

Please sign in to comment.