Last active
March 11, 2019 14:29
-
-
Save p-m-m-c/b818f3867e9b95bee66ad5b69c801f07 to your computer and use it in GitHub Desktop.
Bash config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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