mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-05 16:48:38 +00:00
remove bash title, it really did not work
This commit is contained in:
parent
2f7f5c16ef
commit
ce6b097dbc
1 changed files with 16 additions and 0 deletions
16
bash/prompt
Executable file
16
bash/prompt
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
function do_prompt ()
|
||||||
|
{
|
||||||
|
if [ $? -ne 0 ] ; then
|
||||||
|
local ERROR_PROMPT="\[\033[01;31m\]"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local BASE
|
||||||
|
if [ $UID -ne 0 ] ; then
|
||||||
|
BASE="$"
|
||||||
|
else
|
||||||
|
BASE="#"
|
||||||
|
fi
|
||||||
|
export PS1="\[\033[01;32m\]\u@\h \[\033[01;34m\]\w ${ERROR_PROMPT}${BASE} \[\033[00m\]"
|
||||||
|
}
|
||||||
|
|
||||||
|
PROMPT_COMMAND=do_prompt
|
Loading…
Add table
Reference in a new issue