Use which instead of type so that bash doesnt report error to GUI
This commit is contained in:
@@ -101,7 +101,9 @@ export PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"
|
|||||||
|
|
||||||
# aliases
|
# aliases
|
||||||
alias less='less -i -r'
|
alias less='less -i -r'
|
||||||
type winget.exe >/dev/null && alias winget="$(which winget.exe)"
|
if which winget.exe >/dev/null 2>&1; then
|
||||||
|
alias winget="$(which winget.exe)"
|
||||||
|
fi
|
||||||
|
|
||||||
# profile variables that need to be defined late
|
# profile variables that need to be defined late
|
||||||
[ -f "$HOME/.profile-post-local" ] && source "$HOME/.profile-post-local"
|
[ -f "$HOME/.profile-post-local" ] && source "$HOME/.profile-post-local"
|
||||||
|
|||||||
Reference in New Issue
Block a user