summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-05-22 22:53:55 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-05-22 22:53:55 +0800
commit5cc8573c8e35fdf7aba19e7d36cb1c51c3b68467 (patch)
tree33d910258ad091dbeaae170e64849fd625026ddb
parent8c3aef3b1d71dd5cadb7f962be339728a70c22a1 (diff)
improved command not found handler and added the fuck into it with instant prompt enabled
-rwxr-xr-xplugins-customization.zsh10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins-customization.zsh b/plugins-customization.zsh
index f6c85d2..62a2cbe 100755
--- a/plugins-customization.zsh
+++ b/plugins-customization.zsh
@@ -107,7 +107,7 @@ add-zsh-hook -Uz precmd rehash_precmd
#z4h init || return
# thefuck
-#eval $(thefuck --alias)
+eval $(thefuck --alias) &!
# autojump
#source $HOME/.autojump/etc/profile.d/autojump.sh
@@ -116,7 +116,7 @@ autoload -U compinit && compinit -u
# homebrew
# [ -d /home/linuxbrew/.linuxbrew ] && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
# eval "$(/usr/local/linuxbrew/bin/brew shellenv)"
-eval "$(/opt/homebrew/bin/brew shellenv)"
+eval "$(/opt/homebrew/bin/brew shellenv)" &!
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
@@ -161,7 +161,7 @@ rehash_precmd() {
#source /usr/share/nvm/init-nvm.sh
# nix
-if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
-eval "$(zoxide init zsh --cmd cd)"
+if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh &!; fi # added by Nix installer
+eval "$(zoxide init zsh --cmd cd)" &!
-eval "$(gh copilot alias zsh)"
+eval "$(gh copilot alias zsh)" &!