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"