From 53f89d32d7e6a1636a7a7874d9dc39b5557abfa0 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Wed, 31 Jul 2024 15:18:46 -0400 Subject: [PATCH] nu: fix zoxide config file nushell follows the symlinks through into this git repo :( --- src/.config/nushell/zoxide.nu | 60 ----------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 src/.config/nushell/zoxide.nu diff --git a/src/.config/nushell/zoxide.nu b/src/.config/nushell/zoxide.nu deleted file mode 100644 index aa338b6..0000000 --- a/src/.config/nushell/zoxide.nu +++ /dev/null @@ -1,60 +0,0 @@ -# Code generated by zoxide. DO NOT EDIT. - -# ============================================================================= -# -# Hook configuration for zoxide. -# - -# Initialize hook to add new entries to the database. -if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) { - $env.__zoxide_hooked = true - $env.config = ($env | default {} config).config - $env.config = ($env.config | default {} hooks) - $env.config = ($env.config | update hooks ($env.config.hooks | default {} env_change)) - $env.config = ($env.config | update hooks.env_change ($env.config.hooks.env_change | default [] PWD)) - $env.config = ($env.config | update hooks.env_change.PWD ($env.config.hooks.env_change.PWD | append {|_, dir| - zoxide add -- $dir - })) -} - -# ============================================================================= -# -# When using zoxide with --no-cmd, alias these internal functions as desired. -# - -# Jump to a directory using only keywords. -def --env __zoxide_z [...rest:string] { - let arg0 = ($rest | append '~').0 - let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) { - $arg0 - } else { - (zoxide query --exclude $env.PWD -- ...$rest | str trim -r -c "\n") - } - cd $path -} - -# Jump to a directory using interactive search. -def --env __zoxide_zi [...rest:string] { - cd $'(zoxide query --interactive -- ...$rest | str trim -r -c "\n")' -} - -# ============================================================================= -# -# Commands for zoxide. Disable these using --no-cmd. -# - -alias z = __zoxide_z -alias zi = __zoxide_zi - -# ============================================================================= -# -# Add this to your env file (find it by running `$nu.env-path` in Nushell): -# -# zoxide init nushell | save -f ~/.zoxide.nu -# -# Now, add this to the end of your config file (find it by running -# `$nu.config-path` in Nushell): -# -# source ~/.zoxide.nu -# -# Note: zoxide only supports Nushell v0.89.0+.