nac sets up alias denac, ____denac unaliases denac

This commit is contained in:
Michael Bradley, Jr 2018-07-25 10:13:46 -05:00
parent 93bea147ce
commit 66b36740b0
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ nac () {
____denac
return 1
fi
alias denac='deactivate_node'
alias deactivate_node='__denac'
case $- in
*i*) __npm_completion \
@ -60,6 +61,7 @@ __denac () {
export -f __denac
____denac () {
unalias denac &> /dev/null
unalias deactivate_node &> /dev/null
if type deactivate_node &> /dev/null; then
deactivate_node