mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
Use $commands instead of which command.
This commit is contained in:
parent
1aba1d34a2
commit
de36883b97
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ if [ $commands[fasd] ]; then # check if fasd is installed
|
||||||
eval "$(fasd --init auto)"
|
eval "$(fasd --init auto)"
|
||||||
alias v='f -e vim'
|
alias v='f -e vim'
|
||||||
|
|
||||||
if [[ $('uname') == 'Linux' ]] && [[ -e $( which xdg-open 2>&1 ) ]]; then
|
if [[ $('uname') == 'Linux' ]] && [ $commands[xdg-open] ]; then
|
||||||
alias o='a -e xdg-open'
|
alias o='a -e xdg-open'
|
||||||
elif [[ $('uname') == 'Darwin' ]]; then
|
elif [[ $('uname') == 'Darwin' ]]; then
|
||||||
alias o='a -e open'
|
alias o='a -e open'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue