bash: use addpath to only add paths once

This commit is contained in:
2019-12-12 15:06:48 +00:00
parent 429102fd1e
commit 749d22c17e
3 changed files with 22 additions and 4 deletions

View File

@@ -3,6 +3,9 @@ if [ -x /usr/bin/dircolors ]; then
alias grep='grep --color=auto'
fi
# export PATH=$HOME/.local/bin:$PATH
addpath $HOME/.local/bin
# some more ls aliases
alias ll='ls -l'
alias la="ls -a"

View File

@@ -1,5 +1,5 @@
# Set up NPM
NPM_PACKAGES="$HOME/.npm-packages"
NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
PATH=$PATH:$NPM_PACKAGES/bin
MANPATH="$MANPATH:$NPM_PACKAGES/share/man"
addpath $NPM_PACKAGES/bin