chore: clean up zoxide and ssh

Signed-off-by: jolheiser <git@jolheiser.com>
main
jolheiser 2024-08-28 22:05:21 -05:00
parent 754c59db6d
commit ee28dac8c1
No known key found for this signature in database
5 changed files with 2 additions and 66 deletions

View File

@ -31,7 +31,7 @@ in
};
};
services.gpg-agent = {
enable = true;
enable = false;
enableExtraSocket = true;
enableSshSupport = true;
pinentryPackage = pkgs.pinentry-gnome3;

View File

@ -30,7 +30,6 @@
};
xdg.configFile = {
"nushell/jolheiser.nu".source = ./nushell/jolheiser.nu;
"nushell/zoxide.nu".source = ./nushell/zoxide.nu;
"nushell/ohmyposh.nu".source = ./nushell/ohmyposh.nu;
};
}

View File

@ -99,6 +99,5 @@ def , [
## Other ##
$env.EDITOR = hx
source ~/.config/nushell/zoxide.nu
source ~/.config/nushell/ohmyposh.nu
$env.SSH_AUTH_SOCK = '/run/user/1000/ssh-agent'

View File

@ -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.73.0 and above.

View File

@ -1,7 +1,5 @@
{
programs.zoxide = {
enable = true;
# TODO remove once zoxide is updated for new nushell def --env syntax
enableNushellIntegration = false;
};
}