Last active
March 19, 2016 14:55
-
-
Save psyllo/7935664 to your computer and use it in GitHub Desktop.
My .bash_profile
This file contains 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
# .bash_profile - Benjamin Cluff - 2013 | |
if [ -r $HOME/.profile ]; then | |
source $HOME/.profile | |
fi | |
# More colors for xterm | |
export TERM=xterm-256color | |
# Emacs as default editor | |
export EDITOR=emacs | |
# File clobber - To override for a single command use arrow pipe as in | |
# echo "abc" >| foo.txt | |
set -o noclobber # Prevent | |
# set +o noclobber # Allow | |
# Load ~/.bashrc - It is not uncommon to source .bashrc from within | |
# .bash_profile, and I will do the same, but I will give the user a | |
# chance to opt out if logging in remotely, just in case. | |
if [ -r ~/.bashrc ]; then | |
if [ -n "$REMOTEHOST" ] || [ -n "$SSH_CLIENT" ]; then | |
echo -n 'Skip ~/.bashrc? (Control-c to abort)' | |
sleep 0.5 | |
echo -n '.' | |
sleep 0.5 | |
echo -n '. ' | |
echo 'Loading ~/.bashrc' | |
fi | |
source ~/.bashrc | |
fi | |
if [ -r ~/.ssh-agent-env ]; then | |
source ~/.ssh-agent-env > /dev/null | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment