Skip to content

Instantly share code, notes, and snippets.

@josephabrahams
Last active August 29, 2015 14:08
Show Gist options
  • Save josephabrahams/2043b57e2c039cc3a2d1 to your computer and use it in GitHub Desktop.
Save josephabrahams/2043b57e2c039cc3a2d1 to your computer and use it in GitHub Desktop.
Simple [ba]sh start-up file
# colorize the prompt
PS1="\u@\h:\[\e[1;34m\]\w\[\e[0m\]\\$ "
# colorize `ls`
if ls --color > /dev/null 2>&1; then
# GNU
alias ls='ls --color=auto'
else
# BSD
alias ls='ls -G'
fi
# colorize `grep`
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
# aliases
alias ..="cd .."
alias l="ls -AF"
alias ll="ls -alF"
@josephabrahams
Copy link
Author

curl -L joseph.is/getting-bashed > ~/.profile

@josephabrahams
Copy link
Author

wget --no-check-certificate -O ~/.profile joseph.is/getting-bashed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment