remove PRE_PROMPT_COMMAND

parent da4b144c
......@@ -66,6 +66,7 @@ Overview of changes in v9.1 "Dial T for TNT"
Custom Prompt Builder.
* make colorshell a trap rather than embedding it in PROMPT_COMMAND
* remove PRE_PROMPT_COMMAND
=== Styles ===
......
......@@ -33,8 +33,6 @@ then
xPWD="...${PWD:${cutt}}"
fi
PRE_PROMPT_COMMAND
}
PROMPT_COMMAND=pre_prompt
......
......@@ -12,7 +12,6 @@
if [[ ${enable_colors} == True ]]; then
function pre_prompt {
let prompt_x=$(tput cols)-29
tput sc
tput cup 0 ${prompt_x}
......@@ -23,7 +22,6 @@ $(echo ${sepacolor} | sed -e 's/\\\[//g' -e 's/\\\]//g') ::\
$(echo ${timecolor} | sed -e 's/\\\[//g' -e 's/\\\]//g') $(date +%T)\
$(echo ${sepacolor} | sed -e 's/\\\[//g' -e 's/\\\]//g') ]"
tput rc
PRE_PROMPT_COMMAND
}
PROMPT_COMMAND=pre_prompt
......@@ -33,13 +31,11 @@ PS1="${sepacolor}[${usercolor} \u ${fontcolor}@ ${hostcolor}\h ${pscolor}: ${wdi
else
function pre_prompt {
let prompt_x=$(tput cols)-29
tput sc
tput cup 0 ${prompt_x}
echo -n "[ $(date '+%a, %d %b %y') :: $(date +%T) ]"
tput rc
PRE_PROMPT_COMMAND
}
PROMPT_COMMAND=pre_prompt
......
......@@ -58,8 +58,6 @@ else
newPWD="${PWD//\//${esepacolor}${dirchar}${ewdircolor}}"
fi
PRE_PROMPT_COMMAND
_newPWD () {
echo -e $newPWD
}
......@@ -145,8 +143,6 @@ else
newPWD="${PWD//\//${dirchar}}"
fi
PRE_PROMPT_COMMAND
_newPWD () {
echo -e ${newPWD}
}
......
......@@ -29,5 +29,3 @@
[[ ! $(declare -f SEPA_NG_1) ]] && SEPA_NG_1 () { return 0; }
[[ ! $(declare -f QUIRK_1) ]] && QUIRK_1 () { return 0; }
[[ ! $(declare -f PRE_PROMPT_COMMAND) ]] && PRE_PROMPT_COMMAND () { return 0; }
......@@ -39,8 +39,6 @@ function prompt_command
fi
unset devicetemp
PRE_PROMPT_COMMAND
}
PROMPT_COMMAND=prompt_command
......
......@@ -20,9 +20,7 @@ floating_clock_pc=r"""let prompt_x=$(tput cols)-29
tput sc
tput cup 0 ${prompt_x}
echo -n \"[ $(date '+%a, %d %b %y') :: $(date +%T) ]\"
tput rc
PRE_PROMPT_COMMAND"""
tput rc"
floating_clock_ps=r"""[ \u @ \h : \$(truncpwd) ] """
......@@ -47,8 +45,6 @@ if [ \"$fillsize\" -lt \"0\" ]; then
else newPWD=\"${PWD//\//$dirchar}\"
fi
PRE_PROMPT_COMMAND
_newPWD () {
echo -e $newPWD
}
......@@ -112,9 +108,7 @@ devices=\"\"
else
devices=\" ${devicetemp}bc\"
fi
unset devicetemp
PRE_PROMPT_COMMAND"""
unset devicetemp"
poweruser_ps=r"""\[ \$(date +%T) - \$(date +%D) ]
[ \u @ \h ]\ [ \${files}.\${hiddenfiles}-\${executables}x \$(show_size)
......@@ -150,9 +144,7 @@ if [ \"$fillsize\" -lt \"0\" ]
then
let cutt=3-${fillsize}
newPWD=\"...$(echo -n $PWD | sed -e \"s/\(^.\{$cutt\}\)\(.*\)/\2/\")\"
fi
PRE_PROMPT_COMMAND"""
fi"
ayoli_ps=r"""┌─( \u @ \h \$(date \"+%a, %d %b %y\") )─\${fill}─( \$newPWD
)─<└─( \$(date \"+%H:%M\") \$ )─> """
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment