bashrc/.bash_profile

20 lines
452 B
Bash

#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
# Do these things if in tty0-tty9
case $(tty) in /dev/tty[0-9]*)
setleds -D +num # (numlock for X is set in ~/.xinitrc)
;;
esac
# Add home bin folder to $PATH
PATH=$PATH:~/bin
# Redirect npm global installs to user folder instead
# Ref: https://wiki.archlinux.org/index.php/Node.js#Allow_user-wide_installations
PATH="$HOME/.node_modules/bin:$PATH"
export npm_config_prefix=~/.node_modules