Skip to content

Instantly share code, notes, and snippets.

@Demonstrandum
Last active August 18, 2017 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Demonstrandum/09c44bac8bc915a654f94a621fcfeeb3 to your computer and use it in GitHub Desktop.
Save Demonstrandum/09c44bac8bc915a654f94a621fcfeeb3 to your computer and use it in GitHub Desktop.
Default bashrc
. /etc/bashrc
prompt() {
extra=2
PS1=$(printf "\n%*s\r%s\n>>> " "$(expr $(tput cols) - ${#PWD} + $(if [[ $PWD/ = "$HOME"/* ]]; then echo ${#HOME} - 1; else echo 0; fi) + $extra )" '[ \w ]' '\u@\h')
}
PROMPT_COMMAND=prompt
. ~/.functions
. ~/.aliases
. ~/.profile
PATH=/usr/local/bin:/usr/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment