Skip to content

Commit

Permalink
Add NODE_PATH alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhsamuel committed Sep 24, 2017
1 parent 22414ee commit 852d054
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions path-v3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# Also supports short aliases for path environment variable names.
#
# - CP=CLASSPATH
# - JS=NODE_PATH
# - LD=LD_LIBRARY_PATH
# - MAN=MANPATH
# - PY=PYTHONPATH
Expand All @@ -38,6 +39,7 @@ _path-alias() {
local name="$1"
case "$name" in
CP) name=CLASSPATH;;
JS) name=NODE_PATH;;
LD) name=LD_LIBRARY_PATH;;
MAN) name=MANPATH;;
PY) name=PYTHONPATH;;
Expand Down
2 changes: 2 additions & 0 deletions path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#
# PATH_VARNAME_ALIASES=(
# [CP]=CLASSPATH
# [JS]=NODE_PATH
# [LD]=LD_LIBRARY_PATH
# [MAN]=MANPATH
# [PY]=PYTHONPATH
Expand Down Expand Up @@ -243,6 +244,7 @@ declare -A PATH_VARNAME_ALIASES

PATH_VARNAME_ALIASES=(
[CP]=CLASSPATH
[JS]=NODE_PATH
[LD]=LD_LIBRARY_PATH
[MAN]=MANPATH
[PY]=PYTHONPATH
Expand Down

0 comments on commit 852d054

Please sign in to comment.