aboutsummaryrefslogtreecommitdiff
path: root/pdksh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-09 10:30:49 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-09 10:32:09 +1200
commit657a7794cd769539eb9b293c1371c0243ec29a54 (patch)
treebf11b3d9b132e9649d3e887bc4251987e986009a /pdksh
parentRemove bash-specific $FUNCNAME from pdksh prompt (diff)
downloaddotfiles-657a7794cd769539eb9b293c1371c0243ec29a54.tar.gz
dotfiles-657a7794cd769539eb9b293c1371c0243ec29a54.zip
Remove PROMPT_RETURN from pdksh prompt
Realised that the absence of PROMPT_COMMAND in pdksh makes the strategy used for this impossible; will have to figure out something else. Hopefully I will not have to resort to putting it into a file.
Diffstat (limited to 'pdksh')
-rw-r--r--pdksh/kshrc.d/prompt.ksh11
1 files changed, 0 insertions, 11 deletions
diff --git a/pdksh/kshrc.d/prompt.ksh b/pdksh/kshrc.d/prompt.ksh
index 29c8f93a..cb0d1258 100644
--- a/pdksh/kshrc.d/prompt.ksh
+++ b/pdksh/kshrc.d/prompt.ksh
@@ -12,9 +12,6 @@ prompt() {
# Turn complex, colored PS1 and debugging PS4 prompts on
on)
- # Declare the PROMPT_RETURN variable
- PROMPT_RETURN=0
-
# Set up prompt, including optional PROMPT_PREFIX and PROMPT_SUFFIX
# variables
PS1='[\u@\h:\w]'
@@ -79,20 +76,12 @@ prompt() {
# Revert to simple inexpensive prompts
off)
- unset -v PROMPT_RETURN
PS1='\$ '
PS2='> '
PS3='? '
PS4='+ '
;;
- # Show return status of previous command in angle brackets, if not zero
- ret)
- if ((PROMPT_RETURN > 0)) ; then
- printf '<%u>' "$PROMPT_RETURN"
- fi
- ;;
-
# Show the count of background jobs in curly brackets, if not zero
job)
typeset -i jobc