Some fixes for skim

This commit is contained in:
Marko Korhonen 2021-08-17 20:32:46 +03:00
parent 0f653f785f
commit 0250876649
3 changed files with 21 additions and 10 deletions

View file

@ -6,13 +6,20 @@ alias gpush='git push'
alias mutt='neomutt'
# make fzf zsh plugin use fd
_fzf_compgen_dir() {
# make skim zsh plugin use fd
_skim_compgen_dir() {
fd -Ht d
}
_fzf_compgen_path() {
_skim_compgen_path() {
fd -Ht f
}
# same for fzf
_fzf_compgen_dir() {
_skim_compgen_dir
}
_fzf_compgen_path() {
_skim_compgen_path
}
# search and install packages with skim
pi() {
@ -34,9 +41,9 @@ pr() {
fi
}
# find and open man pages with fzf
# find and open man pages with skim
fman() {
man -k . | fzf --prompt='Man> ' | awk '{print $1}' | xargs -r man
man -k . | sk --prompt='Man> ' | awk '{print $1}' | xargs -r man
}
# I'm retarded so I need this