aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/prompt.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r--bash/bashrc.d/prompt.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index 2c5034f2..e9ed5d31 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -1,6 +1,12 @@
# Frontend to controlling prompt
prompt() {
+ # If no arguments, print the prompt strings as they are
+ if [[ ! $1 ]] ; then
+ declare -p PS1 PS2 PS3 PS4
+ return
+ fi
+
# What's done next depends on the first argument to the function
case $1 in