Created
November 26, 2014 07:18
-
-
Save Nan-Zhang/e6f094ec7d86fd62876f to your computer and use it in GitHub Desktop.
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
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' | |
The first line changes the bash prompt to be colorized, and rearranges the prompt to be “username@hostname:cwd $” | |
The next two lines enable command line colors, and define colors for the ‘ls’ command | |
Finally, we alias ls to include a few flags by default. -G colorizes output, -h makes sizes human readable, and -F throws a / after a directory, * after an executable, and a @ after a symlink, making it easier to quickly identify things in directory listings. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment