Skip to content

Instantly share code, notes, and snippets.

@jdhao
Created April 18, 2019 07:33
Show Gist options
  • Save jdhao/5a2f4e32d134b8cc104a3729374ae699 to your computer and use it in GitHub Desktop.
Save jdhao/5a2f4e32d134b8cc104a3729374ae699 to your computer and use it in GitHub Desktop.
Bash configurations
export PATH=$HOME/local/bin:$PATH
export SHELL=`which zsh`
[ -f "$SHELL" ] && exec "$SHELL" -l
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
################ shell options ############################
# forbid the use of ctrl + d to logout the login shell
# see https://goo.gl/nUCd8o
set -o ignoreeof
# keep you from accidentally overwrite existing files
# see https://www.cs.ait.ac.th/~on/O/oreilly/unix/upt/ch13_06.htm
set -o noclobber
# do not get immediate notification of background job termination
set +o notify
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment