From 5cc8573c8e35fdf7aba19e7d36cb1c51c3b68467 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 22 May 2024 22:53:55 +0800 Subject: improved command not found handler and added the fuck into it with instant prompt enabled --- plugins-customization.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins-customization.zsh') 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)" &! -- cgit v1.2.3