Begin adding custom sk command
This commit is contained in:
parent
215f93d65a
commit
a442de0292
1 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
sk-with-binds() {
|
||||
sk --ansi --color=dark --border \
|
||||
--preview-window=":hidden" \
|
||||
--preview='head -$LINES {}' \
|
||||
--bind='ctrl-y:execute-silent(echo {} | xclip -selection "clipboard"),ctrl-x:toggle-preview' \
|
||||
--header='[ctrl-y]:yank current item [ctrl-x]:toggle preview window' \
|
||||
"$@"
|
||||
}
|
||||
|
||||
# check for existence of fuzzy finders. If found, substitute fzf with it.
|
||||
# order is skim > fzy > fzf > nothing
|
||||
if type sk >/dev/null 2>&1; then
|
||||
|
|
Loading…
Reference in a new issue