Last active
August 18, 2017 20:11
-
-
Save Demonstrandum/09c44bac8bc915a654f94a621fcfeeb3 to your computer and use it in GitHub Desktop.
Default bashrc
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
. /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