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
master
Jonathan Hodgson 4 years ago
parent a4a520aa02
commit fd6d4258df
  1. 8
      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 # These don't have the same syntax but I want to be reminded of the better
# versions # versions
type mycli > /dev/null && alias mysql="echo \"You might want to use mycli instead\"; /usr/bin/mysql" type -p 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 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 # These are the gnu coreutils mv and cp with a progress bar patched in
type mvg > /dev/null && alias mv="mvg -g" type -p mvg > /dev/null && alias mv="mvg -g"
type cpg > /dev/null && alias cp="cpg --progress-bar" type -p cpg > /dev/null && alias cp="cpg --progress-bar"
################### ###################
# Git Shortcuts # # Git Shortcuts #

Loading…
Cancel
Save