Compare commits

...

3 Commits

Author SHA1 Message Date
5d8d881d4d Configure fzf
It is now setup to look very similar to telescope.
It now uses fd for finding files.

There is a shell function `pi` to search for packages using fzf and to
then install them with paru
2025-09-07 04:49:38 +02:00
97f132d609 Added zoxide 2025-09-07 04:25:49 +02:00
98aa0593c9 Added syntax highlighting to shell 2025-09-07 04:23:04 +02:00
3 changed files with 34 additions and 0 deletions

3
.gitmodules vendored
View File

@@ -10,3 +10,6 @@
[submodule "zsh/custom/plugins/zsh-autopair"]
path = zsh/custom/plugins/zsh-autopair
url = https://github.com/hlissner/zsh-autopair
[submodule "zsh/custom/plugins/fast-syntax-highlighting"]
path = zsh/custom/plugins/fast-syntax-highlighting
url = https://github.com/zdharma-continuum/fast-syntax-highlighting.git

View File

@@ -27,6 +27,7 @@ plugins=(
command-not-found
dirhistory
zsh-autopair
fast-syntax-highlighting
)
bindkey -M vicmd "k" up-line-or-beginning-search
@@ -95,3 +96,32 @@ if hash pnpm 2>/dev/null; then
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
fi
export FZF_DEFAULT_OPTS='--tmux'
export FZF_DEFAULT_OPTS=$FZF_DEFAULT_OPTS'
--color=fg:-1,fg+:#83a598,bg:-1,bg+:#262626
--color=hl:bold:#8ec07c,hl+:#8ec07c,marker:#cc241d
--color=prompt:#fb4934,spinner:#af5fff,pointer:#83a598,header:#87afaf
--color=border:#7c6f64,label:#7c6f64
--border="sharp" --border-label-pos="0" --preview-window="border-sharp"
--prompt="> " --marker="◆" --pointer=">" --separator="─"
--scrollbar="│" --info="right"'
if hash fd 2>/dev/null; then
export FZF_DEFAULT_COMMAND="fd --type f --strip-cwd-prefix"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
fi
if hash fzf 2>/dev/null; then
source <(fzf --zsh)
if hash paru 2>/dev/null; then
function pi {
paru -Slq | fzf -q "$1" --border-label="Packages" --multi --preview 'paru -Si {1}' | xargs -ro paru -S
}
fi
fi
export _ZO_FZF_OPTS="--tmux"
if hash zoxide 2>/dev/null; then
eval "$(zoxide init zsh --cmd cd)"
fi