diff options
| author | Syndamia <kamen@syndamia.com> | 2024-11-08 07:53:06 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2024-11-08 07:53:06 +0200 |
| commit | b9af2172694856931e63c768c5e7ad674006aa30 (patch) | |
| tree | d3fdc39ed2bcd53fa6361becd723694e31a52aa4 | |
| parent | ae8973ddfadcb10e1511d9363ac9610321dd4dcf (diff) | |
| download | dotfiles-b9af2172694856931e63c768c5e7ad674006aa30.tar dotfiles-b9af2172694856931e63c768c5e7ad674006aa30.tar.gz dotfiles-b9af2172694856931e63c768c5e7ad674006aa30.zip | |
fix(bash): Quote all usages of PS_*_SLAB
| -rw-r--r-- | .bashrc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |
