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:
Donovan Glover 2018-09-19 14:31:27 -04:00
parent 6a3aad7a1f
commit 7be289730b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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