From 73097b0c8c6cfe1765ba4f82fc8361c6e2ea224a Mon Sep 17 00:00:00 2001 From: "Niclas D. Gesing" Date: Mon, 20 May 2024 11:22:48 +0000 Subject: [PATCH 1/3] :sparkles: Use wsl-open if WSL --- .zprofile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From f64121c98f2b7764b9ff25838053890f50e6114a Mon Sep 17 00:00:00 2001 From: "Niclas D. Gesing" Date: Mon, 20 May 2024 11:23:06 +0000 Subject: [PATCH 2/3] :sparkles: Eval keychain at start --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc b/.zshrc index ed8043e2..acf9e920 100644 --- a/.zshrc +++ b/.zshrc @@ -55,6 +55,11 @@ fi # Source your static plugins file. source $zsh_plugins +# +# keychain +# + +test -f /usr/bin/keychain && eval $(/usr/bin/keychain --eval --quiet id_ed25519) # # Local From 57e48a7caa372b1b52d17d8ffa74add16a1dce34 Mon Sep 17 00:00:00 2001 From: "Niclas D. Gesing" Date: Mon, 20 May 2024 11:23:20 +0000 Subject: [PATCH 3/3] :sparkles: Enable fnm usage --- .zshrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.zshrc b/.zshrc index acf9e920..f3b24953 100644 --- a/.zshrc +++ b/.zshrc @@ -61,6 +61,17 @@ source $zsh_plugins 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 #