From 7be289730baa022eb7fd712e48fc1efaca86363c Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 19 Sep 2018 14:31:27 -0400 Subject: [PATCH] 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. --- dots/common/.aliases.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dots/common/.aliases.sh b/dots/common/.aliases.sh index e275c2d9..5c53e9a7 100644 --- a/dots/common/.aliases.sh +++ b/dots/common/.aliases.sh @@ -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