From a8dc1eff5b02e0e53012bebc39c8df5745274bc9 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Fri, 5 Nov 2021 15:46:29 -0500 Subject: fix: fixed issue with wt startup dir (again) --- zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zshrc') diff --git a/zshrc b/zshrc index da3ea4a..51de715 100644 --- a/zshrc +++ b/zshrc @@ -1,6 +1,6 @@ #!/usr/bin/env zsh -[ "$PWD" = '/mnt/c/Windows' ] && cd + if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" @@ -10,6 +10,7 @@ export DOTFILES="${HOME}/dotfiles" # Directory hashtable hash -d .=${HOME}/dotfiles +[ -n "${WSL_DISTRO_NAME+1}" ] && source $DOTFILES/zsh/wsl.zsh source $DOTFILES/shell/env.sh source $DOTFILES/zsh/plugins.zsh source $DOTFILES/zsh/setopt.zsh @@ -17,4 +18,3 @@ source $DOTFILES/zsh/prompt.zsh source $DOTFILES/zsh/aliases.zsh source $DOTFILES/zsh/completions.zsh source $DOTFILES/zsh/keybindings.zsh -[ -n "${WSL_DISTRO_NAME+1}" ] && source $DOTFILES/zsh/wsl.zsh -- cgit v1.2.3-70-g09d2