Begin adding custom sk command

This commit is contained in:
Marty Oehme 2019-06-17 23:13:55 +02:00
parent 215f93d65a
commit a442de0292

View file

@ -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