diff --git a/.zprofile b/.zprofile index 5207eb1b..374dbe9a 100644 --- a/.zprofile +++ b/.zprofile @@ -28,10 +28,10 @@ done if is_wsl; then # check if wslview is installed # if not, install it - if ! command -v wslview &> /dev/null; then - echo "wslview not found, pls install it" + if ! command -v wsl-open &> /dev/null; then + echo "wsl-open not found, pls install it" else - export BROWSER="${BROWSER:-wslview}" + export BROWSER="${BROWSER:-wsl-open}" fi fi diff --git a/.zshrc b/.zshrc index ed8043e2..f3b24953 100644 --- a/.zshrc +++ b/.zshrc @@ -55,6 +55,22 @@ fi # Source your static plugins file. source $zsh_plugins +# +# keychain +# + +test -f /usr/bin/keychain && eval $(/usr/bin/keychain --eval --quiet id_ed25519) + +# +# fnm +# + +eval $(fnm env | sed 1d) +export PATH=$(cygpath $FNM_MULTISHELL_PATH):$PATH + +if [[ -f .node-version || -f .nvmrc ]]; then + fnm use +fi # # Local