Browse Source

Enable `ls` colors in Mac OS X

master
Noah Petherbridge 6 years ago
parent
commit
6b59f379b6
  1. 3
      home/.bashrc
  2. 1
      home/.zshrc

3
home/.bashrc

@ -78,6 +78,9 @@ elif [ "$TERM" = 'cygwin' ]; then
ENLIGHTENED=1
fi
# Make Mac OS X show colors in the `ls` command.
export CLICOLOR=1
# Custom bash prompt.
git_branch() {
branch=`git branch 2> /dev/null | sed -e '/^[^*]/d' | perl -pe 's/^\*\s+//g'`

1
home/.zshrc

@ -9,6 +9,7 @@ export LANG=en_US.UTF-8 # Unicode
setopt prompt_subst # Allow for dynamic prompts
autoload -U colors && colors # Get color aliases
autoload -U compinit && compinit # Better tab completion
export CLICOLOR=1 # Colors in `ls` on Mac OS
export HISTSIZE=2000 # History settings
export HISTFILE="$HOME/.history"
export SAVEHIST=$HISTSIZE

Loading…
Cancel
Save