aboutsummaryrefslogtreecommitdiff
path: root/ksh/kshrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-04-01 21:05:38 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-04-01 21:05:38 +1300
commitdd1b9b2e1ba1ee926400de248a2d9edce8378eaf (patch)
treeff3b4e4e7cb11216a8d2c7d2a984186fdfda3f61 /ksh/kshrc.d
parentMerge branch 'release/v4.17.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-77945df5a11bc39766823ef5d66a1484fe69dfb2.tar.gz (sig)
dotfiles-77945df5a11bc39766823ef5d66a1484fe69dfb2.zip
Merge branch 'release/v4.18.0'v4.18.0
* release/v4.18.0: Bump VERSION Set 'keywordprg' to :help for older Vims Fix up a few cosmetic shell anti-patterns Remove unneeded leading pipe from b:undo_ftplugin
Diffstat (limited to 'ksh/kshrc.d')
-rw-r--r--ksh/kshrc.d/prompt.ksh7
1 files changed, 4 insertions, 3 deletions
diff --git a/ksh/kshrc.d/prompt.ksh b/ksh/kshrc.d/prompt.ksh
index 99e6238d..64e22e8e 100644
--- a/ksh/kshrc.d/prompt.ksh
+++ b/ksh/kshrc.d/prompt.ksh
@@ -14,7 +14,7 @@ function prompt {
on)
# Basic prompt shape depends on whether we're in SSH or not
PS1=
- if [[ -n $SSH_CLIENT ]] || [[ -n $SSH_CONNECTION ]] ; then
+ if [[ -n $SSH_CLIENT || -n $SSH_CONNECTION ]] ; then
PS1=$PS1'${HOSTNAME%%.*}:'
fi
@@ -176,8 +176,9 @@ function prompt {
fi
# There are some untracked and unignored files
- if git ls-files --directory --error-unmatch --exclude-standard \
- --no-empty-directory --others -- ':/*' ; then
+ if git ls-files --directory --error-unmatch \
+ --exclude-standard --no-empty-directory \
+ --others -- ':/*' ; then
state=${state}'?'
fi