aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/prompt_adam3_setup
diff options
context:
space:
mode:
authorDennis Eriksen <dennis@eriksen.im>2017-06-06 12:06:20 +0200
committerDennis Eriksen <dennis@eriksen.im>2017-06-06 12:06:20 +0200
commit6f14273bdbec1e5c5bb6ec5465ce3d85fc5229f9 (patch)
tree2333b193c72b14c50179bf6a15a74f5da191f28c /prompt_adam3_setup
parentadding status-code (diff)
downloadadam3-6f14273bdbec1e5c5bb6ec5465ce3d85fc5229f9.tar.gz
bugfixes
Diffstat (limited to '')
-rw-r--r--prompt_adam3_setup6
1 files changed, 3 insertions, 3 deletions
diff --git a/prompt_adam3_setup b/prompt_adam3_setup
index 60a9dc6..33c6d81 100644
--- a/prompt_adam3_setup
+++ b/prompt_adam3_setup
@@ -24,7 +24,7 @@ prompt_adam3_setup () {
prompt_adam3_PS1="%K{${prompt_adam3_color2}}%n@%k"
# Change color of host, based on hostname
- if [[ $prompt_adam3_color1 == 'multi' ]]; then
+ if [[ "${prompt_adam3_color1}" == 'multi' ]]; then
local hostname_color=$(hostname | od | tr ' ' '\n' | awk '{total = total + $1}END{print 1 + (total % 24)}')
local hostname_bold=$(hostname | od | tr ' ' '\n' | awk '{total = total + $1}END{print 1 + (total % 2)}')
@@ -43,7 +43,7 @@ prompt_adam3_setup () {
else
# If one wants a specific color, just set ut, plain and simple
- local hostname_prompt="%K{$prompt_adam3_color1}%m%k"
+ local hostname_prompt="%K{${prompt_adam3_color1}}%m%k"
fi
prompt_adam3_PS1+="${hostname_prompt} "
@@ -92,4 +92,4 @@ prompt_adam3_precmd () {
PS3="${PS1}?# %b%f%k"
}
-prompt_adam3_setup "$@"
+prompt_adam3_setup "${@}"