From fd6d4258df049048911c4539b17ac7a77b49ceb7 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Thu, 17 Dec 2020 09:41:09 +0000 Subject: [PATCH] aliases: fixes check for a couple of commands I had forgotten to put the -p flag on type when checking for the existence of commands --- shells/shared/aliases | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shells/shared/aliases b/shells/shared/aliases index d6cf1756..1125b005 100644 --- a/shells/shared/aliases +++ b/shells/shared/aliases @@ -122,12 +122,12 @@ type -p sc-im > /dev/null && alias sc="sc-im" # These don't have the same syntax but I want to be reminded of the better # versions -type mycli > /dev/null && alias mysql="echo \"You might want to use mycli instead\"; /usr/bin/mysql" -type pgcli > /dev/null && alias postgres="echo \"You might want to use pgcli instead\"; /usr/bin/postgres" +type -p mycli > /dev/null && alias mysql="echo \"You might want to use mycli instead\"; /usr/bin/mysql" +type -p pgcli > /dev/null && alias postgres="echo \"You might want to use pgcli instead\"; /usr/bin/postgres" # These are the gnu coreutils mv and cp with a progress bar patched in -type mvg > /dev/null && alias mv="mvg -g" -type cpg > /dev/null && alias cp="cpg --progress-bar" +type -p mvg > /dev/null && alias mv="mvg -g" +type -p cpg > /dev/null && alias cp="cpg --progress-bar" ################### # Git Shortcuts #