shell: small fixes
This commit is contained in:
@@ -19,11 +19,12 @@ git_branch() {
|
||||
HOST="\[\033[0;33m\]\h\[\033[m\]"
|
||||
GIT="\[\033[0;31m\]\$(git_branch)\[\033[m\]"
|
||||
DIR="\[\033[0;34m\]\w\[\033[m\]"
|
||||
NEWLINE=$'\n'
|
||||
|
||||
PROMPT_COMMAND=__prompt_command
|
||||
__prompt_command() {
|
||||
local EXIT="$?"
|
||||
export PS1="${HOST} ${DIR} ${GIT}"
|
||||
export PS1="${HOST} ${DIR} ${GIT}${NEWLINE}"
|
||||
|
||||
local red_lambda='\[\033[0;31m\]λ>\[\033[00m\] '
|
||||
local green_lambda='\[\033[0;32m\]λ>\[\033[00m\] '
|
||||
|
||||
Reference in New Issue
Block a user