2011-06-25 17:37:31 +00:00
|
|
|
|
2011-11-22 02:32:50 +00:00
|
|
|
export SHELL=/bin/bash
|
|
|
|
|
2017-11-23 20:54:58 +00:00
|
|
|
source ~/.bash_helpers.sh
|
2011-06-25 17:37:31 +00:00
|
|
|
|
2011-06-26 03:03:37 +00:00
|
|
|
set_prompt
|
2017-11-23 20:54:58 +00:00
|
|
|
configure_ls
|
|
|
|
configure_completions
|
2015-09-08 15:24:29 +00:00
|
|
|
|
2018-11-28 22:46:00 +00:00
|
|
|
alias vim="nvim"
|
2018-06-08 13:36:46 +00:00
|
|
|
alias notes="vim ~/notes.md"
|
|
|
|
|
2019-03-12 21:38:21 +00:00
|
|
|
alias vw="vimwiki"
|
2019-03-12 18:55:16 +00:00
|
|
|
alias update_configs="cd ~/Code/ntietz/config; git pull; cd -; source ~/.profile"
|
|
|
|
|
2011-06-28 00:00:15 +00:00
|
|
|
# default editor
|
|
|
|
export EDITOR=vim
|
|
|
|
|
|
|
|
# set history
|
2018-06-13 15:16:11 +00:00
|
|
|
export HISTSIZE=1000 # very large history
|
2017-11-23 20:54:58 +00:00
|
|
|
export HISTFILESIZE=10000 # very large history
|
|
|
|
export HISTCONTROL=ignoreboth:erasedups # ignore duplicate history entries
|
|
|
|
shopt -s histappend # append to the history when the shell exits (instead of overwriting)
|
2011-06-28 00:00:15 +00:00
|
|
|
|
2011-11-22 02:26:43 +00:00
|
|
|
# disable messaging
|
2012-04-21 23:13:09 +00:00
|
|
|
if `tty -s`; then
|
|
|
|
mesg n
|
|
|
|
fi
|
2011-11-22 02:26:43 +00:00
|
|
|
|
2018-11-12 20:26:34 +00:00
|
|
|
export PATH="$HOME/.local/bin:$HOME/.bin:$PATH"
|
2016-02-17 04:24:45 +00:00
|
|
|
export TERM=xterm-256color
|
2016-02-04 04:42:28 +00:00
|
|
|
|
2019-09-30 23:41:12 +00:00
|
|
|
if [ -d "$HOME/.pyenv" ] && [ -z ${PYENV_SHELL+x} ]
|
2018-07-23 14:24:12 +00:00
|
|
|
then
|
2018-11-12 20:26:34 +00:00
|
|
|
export PATH="$HOME/.pyenv/bin:$PATH"
|
2018-07-23 14:24:12 +00:00
|
|
|
eval "$(pyenv init -)"
|
2019-03-12 16:04:12 +00:00
|
|
|
export PYENV_ROOT="$HOME/.pyenv"
|
2018-07-23 14:24:12 +00:00
|
|
|
fi
|
2017-09-13 02:15:25 +00:00
|
|
|
|
2018-08-15 18:57:35 +00:00
|
|
|
if [ -x "$(command -v gcloud)" ] && [ -f "$HOME/.install/google-cloud-sdk" ]
|
2018-08-15 18:52:48 +00:00
|
|
|
then
|
|
|
|
source $HOME/.install/google-cloud-sdk/completion.bash.inc
|
|
|
|
source $HOME/.install/google-cloud-sdk/path.bash.inc
|
|
|
|
fi
|
2017-09-21 13:20:03 +00:00
|
|
|
|
2018-11-12 20:26:34 +00:00
|
|
|
if [ -x "$(command -v yarn)" ] && [ -d "$HOME/.yarn/bin" ]
|
|
|
|
then
|
|
|
|
export PATH="/home/nicholas/.yarn/bin:$PATH"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d "$HOME/.asdf" ]
|
|
|
|
then
|
|
|
|
. $HOME/.asdf/asdf.sh
|
|
|
|
fi
|
|
|
|
|
2018-03-12 16:01:41 +00:00
|
|
|
alias iex="iex --erl \"-kernel shell_history enabled\""
|
|
|
|
|
2018-05-28 21:02:56 +00:00
|
|
|
if [ -f /usr/local/etc/bash_completion ]
|
|
|
|
then
|
|
|
|
. /usr/local/etc/bash_completion
|
|
|
|
fi
|