diff --git a/bash/bash/prompt.sh b/bash/bash/prompt.sh index 30e9014..12ab4a7 100644 --- a/bash/bash/prompt.sh +++ b/bash/bash/prompt.sh @@ -1,14 +1,11 @@ -PS2="\ -├ " - -function ps1 { -local code=${1} -local date="$(date +%H:%M:%S)" -local git -local host="$(hostname)" -local path="${PWD}" -local user="${USER}" -local view="└ " +ps1() { + local code=${1} + local date="$(date +%H:%M:%S)" + local git + local host="$(hostname)" + local path="${PWD}" + local user="${USER}" + local view="└ " if [ ${code} -ne 0 ] ; then view="${view}\e[0;31m" else @@ -33,3 +30,6 @@ local view="└ " } PS1='$(eval ps1 ${?})' + +PS2="\ +├ "