2019-01-28 02:46:29 +00:00
|
|
|
#
|
|
|
|
# ~/.bashrc
|
|
|
|
#
|
|
|
|
|
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
2019-02-06 15:49:55 +00:00
|
|
|
alias ls='ls -G'
|
2019-01-28 02:46:29 +00:00
|
|
|
PS1='[\u@\h \W]\$ '
|
|
|
|
|
2019-02-05 11:12:12 +00:00
|
|
|
if [ -f /usr/share/nvm/init-nvm.sh ];
|
|
|
|
then
|
|
|
|
source /usr/share/nvm/init-nvm.sh
|
|
|
|
fi
|
|
|
|
|
|
|
|
GPG_TTY=$(tty)
|
|
|
|
export GPG_TTY
|
|
|
|
|
2019-02-06 15:49:55 +00:00
|
|
|
if [ -f /usr/local/bin/virtualenvwrapper.sh ];
|
|
|
|
then
|
|
|
|
export WORKON_HOME=$HOME/.virtualenvs
|
|
|
|
source /usr/local/bin/virtualenvwrapper.sh
|
|
|
|
fi
|
|
|
|
|
2019-02-05 11:12:12 +00:00
|
|
|
if [ -x "$(command -v direnv)" ];
|
|
|
|
then
|
|
|
|
eval "$(direnv hook bash)"
|
|
|
|
fi
|
2019-02-06 15:49:55 +00:00
|
|
|
|
2019-02-07 00:13:03 +00:00
|
|
|
alias edit="$(which emacsclient)"
|
|
|
|
EDITOR="$(which emacsclient)"
|
2019-02-06 15:49:55 +00:00
|
|
|
export EDITOR
|
2019-02-07 00:13:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
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
|