whoever created bash comparisons deserves to be shot

This commit is contained in:
2023-03-23 16:15:56 +01:00
parent 4b448563cf
commit 588901459b
2 changed files with 3 additions and 4 deletions

View File

@@ -24,8 +24,8 @@ export LANGUAGE="en_US.UTF-8"
zlibd() (printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - "$@" | gzip -dc) zlibd() (printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - "$@" | gzip -dc)
# Run WSL-specific inits # Run WSL-specific inits
if [ -n WSLENV ] ; then if [ -n "$WSLENV" ] ; then
printf '\e[34m [termrc] Running on WSL\e[0m\n' printf '\e[34m [termrc] Running on WSL\e[0m\n'
# Load SSH keychain # Load SSH keychain
/usr/bin/keychain -q --nogui $HOME/.ssh/id_rsa /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 # Enable entr workaround for incomplete inotify support on WSL
export ENTR_INOTIFY_WORKAROUND=1 export ENTR_INOTIFY_WORKAROUND=1
fi fi

2
.zshrc
View File

@@ -17,7 +17,7 @@ fi
# Personal prompt # Personal prompt
if [[ -n "$SSH_CLIENT" || -n "$SSH2_CLIENT" ]]; then if [[ -n "$SSH_CLIENT" || -n "$SSH2_CLIENT" ]]; then
c_host='%F{magenta}%M%f' c_host='%F{99}%M%f'
else else
c_host='%F{cyan}%m%f' c_host='%F{cyan}%m%f'
fi fi