mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-18 15:46:43 +02:00
Remove system aliases
Aliasing rm to "rm -i" and mkdir to "mkdir -p" is dangerous because these same safeguards may not be present on the other machines you ssh into. Using pwd instead of simply p (and showing the $HOME directory as ~) is a way to reinforce the idea that the current directory is just one part of a complete system, even if that directory so happens to be in $HOME.
This commit is contained in:
parent
6a3aad7a1f
commit
7be289730b
@ -5,11 +5,6 @@
|
||||
# Sudo and other system aliases
|
||||
####################################################################
|
||||
|
||||
alias rm="rm -i" # Always confirm before deleting things (use -f to override)
|
||||
alias mkdir="mkdir -p" # Automatically make parent directories that don't exist yet
|
||||
|
||||
alias p="pwd | sed -e 's!$HOME!~!g'" # Same as pwd, but uses ~ instead of $HOME
|
||||
|
||||
# Easily start fresh with a clean terminal
|
||||
# Note that "clear force" (cf) clears the terminal for real and doesn't have
|
||||
# any side effects when resizing windows or scrolling up
|
||||
|
Loading…
x
Reference in New Issue
Block a user