Enable hishtory shell completions by default

This commit is contained in:
David Dworken 2023-12-19 15:57:32 -08:00
parent 8082bd5a2d
commit 054744248c
3 changed files with 7 additions and 1 deletions

View File

@ -34,4 +34,6 @@ function __hishtory_on_control_r
rm -f $tmp
end
[ (hishtory config-get enable-control-r) = true ] && bind \cr __hishtory_on_control_r
[ (hishtory config-get enable-control-r) = true ] && bind \cr __hishtory_on_control_r
hishtory completion fish | source

View File

@ -51,3 +51,5 @@ __hishtory_bind_control_r() {
}
[ "$(hishtory config-get enable-control-r)" = true ] && __hishtory_bind_control_r
source <(hishtory completion bash)

View File

@ -40,3 +40,5 @@ _hishtory_bind_control_r() {
}
[ "$(hishtory config-get enable-control-r)" = true ] && _hishtory_bind_control_r
source <(hishtory completion zsh); compdef _hishtory hishtory