Skip to content

Instantly share code, notes, and snippets.

@p-m-m-c
Last active March 11, 2019 14:29
Show Gist options
  • Save p-m-m-c/b818f3867e9b95bee66ad5b69c801f07 to your computer and use it in GitHub Desktop.
Save p-m-m-c/b818f3867e9b95bee66ad5b69c801f07 to your computer and use it in GitHub Desktop.
Bash config
# Name, domain and location are different colors
export PS1="\n\[\033[1;32m\]\u\[\033[1;30m\]@\[\033[34m\]\h \[\033[1;30m\]: \[\033[1;33m\]\w\[\e[0;31m\]\$(parse_git_branch)\n \[\033[m\]$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# Define aliases for frequent commands
alias ls='ls -GFh'
alias ..='cd ..'
alias ....='cd ../..'
alias lal='ls -al'
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment