Created
April 18, 2019 07:33
-
-
Save jdhao/5a2f4e32d134b8cc104a3729374ae699 to your computer and use it in GitHub Desktop.
Bash configurations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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