mirror of https://github.com/ohmyzsh/ohmyzsh.git
parent
29b5c182be
commit
f0bbef1a07
|
@ -1,3 +1,10 @@
|
|||
# Add yarn bin directory to $PATH if it exists and not in $PATH already
|
||||
bindir=$(yarn global bin 2>/dev/null) \
|
||||
&& [[ -d "$bindir" ]] \
|
||||
&& (( ! ${path[(Ie)$bindir]} )) \
|
||||
&& path+=("$bindir")
|
||||
unset bindir
|
||||
|
||||
alias y="yarn"
|
||||
alias ya="yarn add"
|
||||
alias yad="yarn add --dev"
|
||||
|
|
Loading…
Reference in New Issue