From 0b5ee28a127dcd45ffed7a4906ce4703fb979820 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 16 Jun 2024 22:12:53 +0100 Subject: [PATCH] Adds deno to path if present --- config/zsh/.zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 353c6ee..4fd7087 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -100,6 +100,12 @@ if [[ -d "$HOME/.cargo/bin" ]]; then export PATH="$HOME/.cargo/bin:$PATH" fi +# Append Deno to path, if it's installed +if [[ -d "$HOME/.deno" ]]; then + export DENO_INSTALL="$HOME/.deno" + export PATH="$DENO_INSTALL/bin:$PATH" +fi + # Add Zoxide (for cd, quick jump) to shell if hash zoxide 2> /dev/null; then eval "$(zoxide init zsh)" @@ -110,3 +116,6 @@ if [[ "${SHLVL}" -lt 2 ]] && \ { [[ -z "$SKIP_WELCOME" ]] || [[ "$SKIP_WELCOME" == "false" ]]; }; then welcome fi + +# bun completions +[ -s "/home/alicia/.bun/_bun" ] && source "/home/alicia/.bun/_bun"