summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbh <qn+git@epicurus.dev>2025-12-23 20:51:34 +0800
committerbh <qn+git@epicurus.dev>2025-12-23 20:51:34 +0800
commitb02de5842fb60615243fcdce899e776a6c0cd131 (patch)
tree963820d73edd20cb16a482532077d4e808d46ab2
parenta4d6480085c09c32963a1381f0d845637c9741a9 (diff)
Added zoxide to zsh
-rw-r--r--zsh/.zshrc18
1 files changed, 8 insertions, 10 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 9f046ac..075859f 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -131,18 +131,16 @@ setopt CORRECT_ALL
# bindkey '^G' vi-cmd-mode
# End of lines configured by zsh-newuser-install
-# Functions
-# fzf-history-widget() {
-# local cmd
-# cmd=$(fc -l 1 | tac | sed 's/^[[:space:]]*[0-9]\+[[:space:]]*//' |
-# fzf --height 40% --reverse --prompt="history> ") || return
-#
-# LBUFFER+="$cmd"
-# }
-# zle -N fzf-history-widget
-# bindkey '^R' fzf-history-widget
+# FZF
source <(fzf --zsh)
+# Zoxide
+eval "$(zoxide init zsh)"
+
+#export FZF_DEFAULT_OPTS="--color=fg+:#FFC600,bg+:#004747,header:#ff00ff,info:#FFC600,pointer:#8affff,marker:#8affff,prompt:#ffC600,spinner:#FFC600,query:#8affff,hl:#00e6a9,hl+:#00e6a9"
+
+export FZF_DEFAULT_OPTS="--color=fg+:#FFC600,bg+:#395e5e,header:#ff00ff,info:#FFC600,pointer:#8affff,marker:#8affff,prompt:#ffC600,spinner:#FFC600,query:#8affff,hl:#00e6a9,hl+:#00e6a9"
+
# The following lines were added by compinstall
zstyle :compinstall filename '/home/bh/.zshrc'