dotfiles/bash/.bashrc

37 lines
654 B
Bash
Raw Normal View History

2019-01-28 02:46:29 +00:00
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
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
if [ -x "$(command -v direnv)" ];
then
eval "$(direnv hook bash)"
fi
2019-06-06 18:46:16 +00:00
alias edit="$(which emacsclient) "
2019-02-07 00:13:17 +00:00
if [ -d "$HOME/.nvm" ];
then
2019-12-27 17:24:49 +00:00
export NVM_DIR="$HOME/.nvm"
2019-02-07 00:13:17 +00:00
[ -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
2019-06-06 18:46:16 +00:00
if [ -f ~/.bashrc.local ];
then
source ~/.bashrc.local
fi
2019-10-23 20:27:28 +00:00
alias k=kubectl
2019-10-29 14:45:56 +00:00
alias kctx=kubectx