From 588901459b4a8bb0ff1862de91bd8463ee1002e6 Mon Sep 17 00:00:00 2001 From: HerrCraziDev Date: Thu, 23 Mar 2023 16:15:56 +0100 Subject: [PATCH] whoever created bash comparisons deserves to be shot --- .termrc | 5 ++--- .zshrc | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.termrc b/.termrc index deebd75..4f220d6 100644 --- a/.termrc +++ b/.termrc @@ -24,8 +24,8 @@ export LANGUAGE="en_US.UTF-8" zlibd() (printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - "$@" | gzip -dc) # Run WSL-specific inits -if [ -n WSLENV ] ; then -printf '\e[34m [termrc] Running on WSL\e[0m\n' +if [ -n "$WSLENV" ] ; then + printf '\e[34m [termrc] Running on WSL\e[0m\n' # Load SSH keychain /usr/bin/keychain -q --nogui $HOME/.ssh/id_rsa @@ -33,6 +33,5 @@ printf '\e[34m [termrc] Running on WSL\e[0m\n' # Enable entr workaround for incomplete inotify support on WSL export ENTR_INOTIFY_WORKAROUND=1 - fi diff --git a/.zshrc b/.zshrc index 0faa439..eab7f7f 100644 --- a/.zshrc +++ b/.zshrc @@ -17,7 +17,7 @@ fi # Personal prompt if [[ -n "$SSH_CLIENT" || -n "$SSH2_CLIENT" ]]; then - c_host='%F{magenta}%M%f' + c_host='%F{99}%M%f' else c_host='%F{cyan}%m%f' fi