Last active
August 29, 2015 14:08
-
-
Save josephabrahams/2043b57e2c039cc3a2d1 to your computer and use it in GitHub Desktop.
Simple [ba]sh start-up file
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
# 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" |
Author
josephabrahams
commented
Oct 28, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment