Skip to content

Instantly share code, notes, and snippets.

@dartokloning
Last active March 16, 2017 04:09
Show Gist options
  • Save dartokloning/baf1fee46d78a896743170e3160f2290 to your computer and use it in GitHub Desktop.
Save dartokloning/baf1fee46d78a896743170e3160f2290 to your computer and use it in GitHub Desktop.
macOS Terminal with fancy styles
# Open Terminal and type nano .bash_profile
# Paste in the following lines:
########## start the configuration #############
# enable color prompt with fancy terminal title
export PS1="\[\e[31m\]┌\[\e[m\]\[\e[31m\]─\[\e[m\]\[\e[31m\]─\[\e[m\]\[\e[33m\][\[\e[m\]\[\e[35m\]\h\[\e[m\]:\w\[\e[33m\]]\[\e[m\][\d - \@]\n\[\e[31m\]└\[\e[m\]\[\e[31m\]─\[\e[m\]\[\e[31m\]─\[\e[m\]\[\e[37m\]>\[\e[m\]\[\e[37m\]>\[\e[m\]\[\e[36m\]\u\[\e[m\]\\$ "
# enable color ls output
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
# fix for error of nano
# Command "magic" not understood
# Command "header" not understood
# https://gist.github.com/BlakeGardner/5587269
export PATH=/usr/local/bin:$PATH
# Set how many commands to keep in the current session history list
export HISTSIZE=2222
# Number of lines to keep (10000000 in this example)
export HISTFILESIZE=10000000
# time stamps
export HISTTIMEFORMAT="%d/%m/%y %T "
# Ignore duplicate commands in history
export HISTCONTROL=ignoredups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment