shell: small fixes

This commit is contained in:
Marco Thomas
2023-07-10 16:28:57 +02:00
parent 4cd55ff5f7
commit b72f73b985
4 changed files with 4 additions and 3 deletions

View File

@@ -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\] '