From abd18c6ca9537c86682c7a77c79f7065a19e7cb3 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 11 Aug 2023 21:13:04 -0600 Subject: [PATCH] zshrc: switch highlighting to fast, readd lost wsl tag --- common/.zshrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/.zshrc b/common/.zshrc index 36187fd..fba44d2 100644 --- a/common/.zshrc +++ b/common/.zshrc @@ -28,8 +28,8 @@ if [[ $CONF_ENABLEAC -eq 1 ]]; then fi if [[ $CONF_ENABLESH -eq 1 ]]; then - if [[ ! -d "$HOME/.zsh/zsh-syntax-highlighting" ]]; then - git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh/zsh-syntax-highlighting" + if [[ ! -d "$HOME/.zsh/fast-syntax-highlighting" ]]; then + git clone --depth=1 https://github.com/zdharma-continuum/fast-syntax-highlighting "$HOME/.zsh/fast-syntax-highlighting" fi fi @@ -156,6 +156,8 @@ ssh_hostname="" get_is_in_ssh() { if [[ ! -z $SSH_TTY ]]; then ssh_hostname="%F{blue}[%m]%f " + elif [[ ! -z $WSL_DISTRO_NAME ]]; then + ssh_hostname="%F{blue}[$WSL_DISTRO_NAME]%f " fi } precmd_functions+=(get_is_in_ssh) @@ -267,4 +269,4 @@ if [[ $CONF_FORTUNE -eq 1 ]]; then echo fi -[[ $CONF_ENABLESH -eq 1 ]] && source "$HOME/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" +[[ $CONF_ENABLESH -eq 1 ]] && source "$HOME/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh"