dotfiles/bash/.bashrc
Jeremy Dormitzer e350f95653 Formatting
2020-02-26 10:39:50 -05:00

37 lines
777 B
Bash

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls -G'
PS1='[\u@\h \W]\$ '
if [ -x "$(command -v direnv)" ]; then
eval "$(direnv hook bash)"
fi
alias edit="$(which emacsclient) "
if [ -f /usr/share/nvm/init-nvm.sh ]; then
source /usr/share/nvm/init-nvm.sh
fi
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
if [ -e "$(which virtualenvwrapper.sh)" ]; then
source "$(which virtualenvwrapper.sh)"
fi
if [ -f ~/.bashrc.local ]; then
source ~/.bashrc.local
fi
alias k=kubectl
alias kctx=kubectx