mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
bash prompt is replace with title_prompt
This commit is contained in:
parent
a1633359b8
commit
87163d8a9e
1 changed files with 0 additions and 16 deletions
16
bash/prompt
16
bash/prompt
|
@ -1,16 +0,0 @@
|
|||
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