feat(bash): riced prompt
This commit is contained in:
parent
9fea6948e0
commit
0139e77bde
1 changed files with 11 additions and 1 deletions
12
.bashrc
12
.bashrc
|
@ -115,7 +115,17 @@ export NVM_DIR="$HOME/.nvm"
|
||||||
export PATH="$HOME/nvim/bin:$PATH"
|
export PATH="$HOME/nvim/bin:$PATH"
|
||||||
|
|
||||||
# Theming
|
# Theming
|
||||||
PS1="$GREEN\u@\h${NC}:$YELLOW\w${NC} $(git branch 2>/dev/null | sed -e '/^[^*]/ d' -e 's/* \(.*\)/\[\1\]/')"'$ '
|
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\]/')"' $ '
|
||||||
|
|
||||||
# Path Setting - Make sure $HOME/bin exists and only add it once.
|
# Path Setting - Make sure $HOME/bin exists and only add it once.
|
||||||
if [ -d "$HOME/bin" ] && ! echo "$PATH" | grep -q "$HOME/bin"; then
|
if [ -d "$HOME/bin" ] && ! echo "$PATH" | grep -q "$HOME/bin"; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue