Skip to content

Instantly share code, notes, and snippets.

@Dimitreee
Created May 6, 2018 23:38
Show Gist options
  • Save Dimitreee/48f6c75cc767adf039288f6c244e3722 to your computer and use it in GitHub Desktop.
Save Dimitreee/48f6c75cc767adf039288f6c244e3722 to your computer and use it in GitHub Desktop.
# Make ls use colors
export CLICOLOR=1
alias grep='grep --color=auto'
# Set default editor
EDITOR=nano
# Configure command line colors
export CLICOLOR=1
alias ls='ls -GFh'
# Set color variables
BLACK="\[\e[0;30m\]"
DARK_GRAY="\[\e[1;30m\]"
RED="\[\e[0;31m\]"
YELLOW="\[\e[0;33m\]"
PURPLE="\[\e[1;34m\]"
BLUE="\[\e[0;34m\]"
LIGHT_BLUE="\[\e[1;34m\]"
GREEN="\[\e[0;32m\]"
LIGHT_GREEN="\[\e[1;32m\]"
CYAN="\[\e[0;36m\]"
LIGHT_CYAN="\[\e[1;36m\]"
LIGHT_RED="\[\e[1;31m\]"
PURPLE="\[\e[0;34m\]"
LIGHT_PURPLE="\[\e[1;35m\]"
BROWN="\[\e[0;33m\]"
LIGHT_GRAY="\[\e[0;37m\]"
WHITE="\[\e[1;37m\]"
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
NAME="sketched "
export PS1="${YELLOW}\W@${BROWN}${NAME}\$(parse_git_branch): "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment