Skip to content

Instantly share code, notes, and snippets.

@Nan-Zhang
Created November 26, 2014 07:18
Show Gist options
  • Save Nan-Zhang/e6f094ec7d86fd62876f to your computer and use it in GitHub Desktop.
Save Nan-Zhang/e6f094ec7d86fd62876f to your computer and use it in GitHub Desktop.
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