diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-09 10:21:49 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-09 10:21:58 +1200 |
commit | 47dbd01117379f4ce736428efcc193d00b0b2aa9 (patch) | |
tree | 0764a26a6667787a4d7bb1cfb70289e669bb84c2 /pdksh | |
parent | Make prompt printing call pdksh-compatible (diff) | |
download | dotfiles-47dbd01117379f4ce736428efcc193d00b0b2aa9.tar.gz dotfiles-47dbd01117379f4ce736428efcc193d00b0b2aa9.zip |
Change "local" to "typeset" for ksh prompt
Diffstat (limited to 'pdksh')
-rw-r--r-- | pdksh/kshrc.d/prompt.ksh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pdksh/kshrc.d/prompt.ksh b/pdksh/kshrc.d/prompt.ksh index a4c5e105..28a7c9fd 100644 --- a/pdksh/kshrc.d/prompt.ksh +++ b/pdksh/kshrc.d/prompt.ksh @@ -25,19 +25,19 @@ prompt() { PS1=$PS1'\$' # Count available colors - local -i colors + typeset -i colors colors=$( { tput Co || tput colors } 2>/dev/null ) # Prepare reset code - local reset + typeset reset reset=$( { tput me || tput sgr0 } 2>/dev/null ) # Decide prompt color formatting based on color availability - local format + typeset format case $colors in # Check if we have non-bold bright green available @@ -95,7 +95,7 @@ prompt() { # Show the count of background jobs in curly brackets, if not zero job) - local -i jobc + typeset -i jobc while read ; do ((jobc++)) done < <(jobs -p) |