diff options
author | Taiki Sugawara | 2022-04-08 14:02:54 +0900 |
---|---|---|
committer | Taiki Sugawara | 2022-04-08 14:19:55 +0900 |
commit | dfc5e3a0401d8875f69edd22b4b32672852c7ab5 (patch) | |
tree | be524182e8c8b963ca2afd2936b41fb50f326174 /fzf-tab-completion-git.install | |
parent | b024083d1451292dbfb81dcd3e2a6cf2eedaaca8 (diff) | |
download | aur-dfc5e3a0401d8875f69edd22b4b32672852c7ab5.tar.gz |
made rl_custom_function as optional
Diffstat (limited to 'fzf-tab-completion-git.install')
-rw-r--r-- | fzf-tab-completion-git.install | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/fzf-tab-completion-git.install b/fzf-tab-completion-git.install index 93e2b933a921..4ccc6f39f38a 100644 --- a/fzf-tab-completion-git.install +++ b/fzf-tab-completion-git.install @@ -1,9 +1,19 @@ post_install() { - cat <<EOF + cat <<'EOF' -If you want to use it with readline, add follows to your .inputrc: +For bash, add the following to your .bashrc: - \$include function rl_custom_complete /usr/lib/librl_custom_complete.so + source /usr/share/fzf-tab-completion/bash/fzf-bash-completion.sh + bind -x '"\t": fzf_bash_completion' + +For zsh, add the following to your .zshrc: + + source /usr/share/fzf-tab-completion/zsh/fzf-zsh-completion.sh + bindkey '^I' fzf_completion + +For readline, install rl_custom_function and add the following to your .inputrc: + + $include function rl_custom_complete /usr/lib/librl_custom_complete.so C-i rl_custom_complete Please read https://github.com/lincheney/fzf-tab-completion for more information. @@ -13,5 +23,3 @@ EOF post_upgrade() { post_install } - - |