Some fixes for skim
This commit is contained in:
parent
0f653f785f
commit
0250876649
3 changed files with 21 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue