dotfiles/bash/.bashrc
Jeremy Dormitzer 232d914bd4 Init nvm
2019-02-06 19:13:17 -05:00

41 lines
775 B
Bash

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls -G'
PS1='[\u@\h \W]\$ '
if [ -f /usr/share/nvm/init-nvm.sh ];
then
source /usr/share/nvm/init-nvm.sh
fi
GPG_TTY=$(tty)
export GPG_TTY
if [ -f /usr/local/bin/virtualenvwrapper.sh ];
then
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
fi
if [ -x "$(command -v direnv)" ];
then
eval "$(direnv hook bash)"
fi
alias edit="$(which emacsclient)"
EDITOR="$(which emacsclient)"
export EDITOR
if [ -d "$HOME/.nvm" ];
then
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
fi