diff --git a/bin/hostname b/bin/hostname index 81c8ca3f..054d09c8 100755 --- a/bin/hostname +++ b/bin/hostname @@ -27,4 +27,4 @@ fi at= grep -qs "^whoami=1$" "$HOME/.$PKG/status" && at="@" -printf "\005{=b }%s%s\005{-}" "$at" $(hostname -s 2>/dev/null || hostname) +printf "\005{+b W}%s%s\005{-}" "$at" $(hostname -s 2>/dev/null || hostname) diff --git a/bin/ip-address b/bin/ip-address index 0b5fe445..8e5452e0 100755 --- a/bin/ip-address +++ b/bin/ip-address @@ -28,4 +28,4 @@ space= grep -qs "^hostname=1$" "$HOME/.$PKG/status" && space=" " grep -qs "^whoami=1$" "$HOME/.$PKG/status" && space=" " -printf "%s\005{=b }%s\005{-}" "$space" $(hostname -i 2>/dev/null) +printf "%s\005{+b }%s\005{-}" "$space" $(hostname -i 2>/dev/null) diff --git a/bin/release b/bin/release index ea637307..0d1f25bd 100755 --- a/bin/release +++ b/bin/release @@ -26,13 +26,13 @@ if which lsb_release >/dev/null 2>&1; then r=$(lsb_release -s -d) if echo "$r" | grep -qs "^Ubuntu .*\..*\..*$"; then # Use the -d if an Ubuntu LTS - printf "\005{=b }%s\005{-} " "$r" + printf "\005{+b }%s\005{-} " "$r" else # But for other distros the description # is too long, so build from -i and -r i=$(lsb_release -s -i) r=$(lsb_release -s -r) - printf "\005{=b }%s %s\005{-} " "$i" "$r" + printf "\005{+b }%s %s\005{-} " "$i" "$r" fi elif [ -r "/etc/issue" ]; then if [ "$1" = "--detail" ]; then @@ -40,7 +40,7 @@ elif [ -r "/etc/issue" ]; then exit 0 fi # Otherwise, grab part of /etc/issue, ideally the distro and version - printf "\005{=b }%s\005{-} " $(head -n1 /etc/issue | sed "s/ [^0-9]* / /" | awk '{print $1 " " $2}') + printf "\005{+b }%s\005{-} " $(head -n1 /etc/issue | sed "s/ [^0-9]* / /" | awk '{print $1 " " $2}') else echo "Unknown" fi diff --git a/bin/whoami b/bin/whoami index 2dae2030..d89cd8db 100755 --- a/bin/whoami +++ b/bin/whoami @@ -22,4 +22,4 @@ if [ "$1" = "--detail" ]; then exit 0 fi -printf "\005{=b }%s\005{-}" $(whoami) +printf "\005{+b W}%s\005{-}" $(whoami)