Created
May 26, 2017 08:52
-
-
Save luiseduardobraschi/cea955a5343e1c910611686c3019e5fe to your computer and use it in GitHub Desktop.
My .bashrc setup.
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
source /opt/wp-completion.bash | |
export DEV=/var/www/html | |
export EDITOR=subl | |
export PS1="\[$(tput bold)\]\[\033[38;5;58m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\[$(tput sgr0)\]\[\033[38;5;58m\]\H\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\] [\t] \w \\$\n> \[$(tput sgr0)\]" | |
# function to set terminal title | |
function set-title() { | |
if [[ -z "$ORIG" ]]; then | |
ORIG=$PS1 | |
fi | |
TITLE="\[\e]2;$*\a\]" | |
PS1=${ORIG}${TITLE} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment