aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-06-16 20:39:59 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-06-16 20:39:59 +1200
commit789be63677aab5efa526dc7144283bac91b7a757 (patch)
tree0f5a304039d66158eb04b83098aa51a0f8822473
parentRemove Nagios and Tmux submodules (diff)
downloaddotfiles-789be63677aab5efa526dc7144283bac91b7a757.tar.gz
dotfiles-789be63677aab5efa526dc7144283bac91b7a757.zip
Allow setting a prompt mode for the shell
-rw-r--r--bash/bashrc.d/prompt.bash4
-rw-r--r--ksh/kshrc.d/prompt.ksh4
-rw-r--r--zsh/zshrc.d/prompt.zsh4
3 files changed, 6 insertions, 6 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index f64355f7..4dede32b 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -249,5 +249,5 @@ prompt() {
esac
}
-# Start with full-fledged prompt
-prompt on
+# Default to a full-featured prompt, but use PROMPT_MODE if that's set
+prompt "${PROMPT_MODE:-on}"
diff --git a/ksh/kshrc.d/prompt.ksh b/ksh/kshrc.d/prompt.ksh
index 1d4db926..1aa05ae3 100644
--- a/ksh/kshrc.d/prompt.ksh
+++ b/ksh/kshrc.d/prompt.ksh
@@ -234,5 +234,5 @@ function prompt {
esac
}
-# Start with full-fledged prompt
-prompt on
+# Default to a full-featured prompt, but use PROMPT_MODE if that's set
+prompt "${PROMPT_MODE:-on}"
diff --git a/zsh/zshrc.d/prompt.zsh b/zsh/zshrc.d/prompt.zsh
index 446e336e..6ff82cec 100644
--- a/zsh/zshrc.d/prompt.zsh
+++ b/zsh/zshrc.d/prompt.zsh
@@ -207,5 +207,5 @@ prompt() {
esac
}
-# Start with full-fledged prompt
-prompt on
+# Default to a full-featured prompt, but use PROMPT_MODE if that's set
+prompt "${PROMPT_MODE:-on}"