summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc10
1 files changed, 5 insertions, 5 deletions
diff --git a/.bashrc b/.bashrc
index cb4cf95..14a67d4 100644
--- a/.bashrc
+++ b/.bashrc
@@ -77,7 +77,7 @@
[ -n "$has" ]
}
right_slab() {
- ps_commands $@ && echo $PS_RIGHT_SLAB
+ ps_commands $@ && echo "$PS_RIGHT_SLAB"
}
ps_space() {
@@ -98,7 +98,7 @@
if [ -n "$___dirchanged" ]
then
- left_cap $PS_INFO $PS_LEFT_SLAB
+ left_cap $PS_INFO "$PS_LEFT_SLAB"
printf "$branch_name"
right_cap $PS_INFO "$(right_slab ex dur dir)"
___git_printed="y"
@@ -109,7 +109,7 @@
ps_exit() {
if [ "$EXSTAT" != '0' ]
then
- left_cap $PS_ERR $PS_LEFT_SLAB
+ left_cap $PS_ERR "$PS_LEFT_SLAB"
printf "$EXSTAT"
right_cap $PS_ERR "$(right_slab dur dir)"
@@ -121,7 +121,7 @@
if [ "$seconds" -gt 10 ]
then
- left_cap $PS_DBG $PS_LEFT_SLAB
+ left_cap $PS_DBG "$PS_LEFT_SLAB"
if [ "$seconds" -lt 60 ]; then TZ='UTC' printf '%ds' "$seconds"
elif [ "$seconds" -le 3600 ]; then TZ='UTC' printf '%(%Mm %Ss)T' "$seconds"
elif [ "$seconds" -le 86400 ]; then TZ='UTC' printf '%(%Hh %Mm %Ss)T' "$seconds"
@@ -140,7 +140,7 @@
if [ -n "$DIR" ]
then
- left_cap $DIRCOLOR $PS_LEFT_SLAB
+ left_cap $DIRCOLOR "$PS_LEFT_SLAB"
printf "$DIR"
right_cap $DIRCOLOR
fi