feat(bash): riced prompt
This commit is contained in:
parent
9fea6948e0
commit
0139e77bde
1 changed files with 11 additions and 1 deletions
10
.bashrc
10
.bashrc
|
@ -115,6 +115,16 @@ export NVM_DIR="$HOME/.nvm"
|
||||||
export PATH="$HOME/nvim/bin:$PATH"
|
export PATH="$HOME/nvim/bin:$PATH"
|
||||||
|
|
||||||
# Theming
|
# Theming
|
||||||
|
function set_title() {
|
||||||
|
echo -ne "\033]0;${PWD}\007"
|
||||||
|
}
|
||||||
|
PROMPT_COMMAND=set_title
|
||||||
|
|
||||||
|
GREEN="\[\033[0;32m\]"
|
||||||
|
YELLOW="\[\033[0;33m\]"
|
||||||
|
RED="\[\033[0;31m\]"
|
||||||
|
NC="\[\033[0m\]" # No Color
|
||||||
|
|
||||||
PS1="$GREEN\u@\h${NC}:$YELLOW\w${NC} $(git branch 2>/dev/null | sed -e '/^[^*]/ d' -e 's/* \(.*\)/\[\1\]/')"' $ '
|
PS1="$GREEN\u@\h${NC}:$YELLOW\w${NC} $(git branch 2>/dev/null | sed -e '/^[^*]/ d' -e 's/* \(.*\)/\[\1\]/')"' $ '
|
||||||
|
|
||||||
# Path Setting - Make sure $HOME/bin exists and only add it once.
|
# Path Setting - Make sure $HOME/bin exists and only add it once.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue