pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/fzf fzf: spoon feed information about how to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7aabd839a02d
branches:  trunk
changeset: 370835:7aabd839a02d
user:      maya <maya%pkgsrc.org@localhost>
date:      Wed Oct 25 10:42:13 2017 +0000

description:
fzf: spoon feed information about how to setup key bindings

zsh might have a better mechanism, but this works!

diffstat:

 sysutils/fzf/MESSAGE |  31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diffs (35 lines):

diff -r 2bea7eb7ac6e -r 7aabd839a02d sysutils/fzf/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/fzf/MESSAGE      Wed Oct 25 10:42:13 2017 +0000
@@ -0,0 +1,31 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2017/10/25 10:42:13 maya Exp $
+fzf comes with bindings for bash, zsh and fish.
+You can install them in the following way:
+
+bash/zsh:
+       Append key bindings and completion files to ~/.bashrc:
+       cat PREFIX/gopkg/src/github.com/junegunn/fzf/shell/key-bindings.bash \
+           PREFIX/gopkg/src/github.com/junegunn/fzf/shell/key-bindings.bash \
+           >> ~/.bashrc
+           source ~/.bashrc
+
+       or ~/.zshrc:
+       cat PREFIX/gopkg/src/github.com/junegunn/fzf/shell/key-bindings.zsh \
+           PREFIX/gopkg/src/github.com/junegunn/fzf/shell/key-bindings.zsh \
+           >> ~/.zshrc
+           source ~/.zshrc
+
+fish:
+       cp PREFIX/gopkg/src/github.com/junegunn/fzf/shell/key-bindings.fish \
+           ~/.config/fish/functions/fzf_key_bindings.fish
+
+       Add "fzf_key_bindings" to fish_user_key_bindings.
+       If you don't have one, use:
+
+       echo "
+       function fish_user_key_bindings
+               fzf_key_bindings
+       end
+       " > ~/.config/fish/functions/fish_user_key_bindings.fish
+===========================================================================



Home | Main Index | Thread Index | Old Index