diff options
| author | slamp <slaamp@gmail.com> | 2025-03-09 22:24:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-09 21:24:28 +0000 |
| commit | 1e72e982e0386dc19855c1ebd0313b233c2df448 (patch) | |
| tree | 6d90c7914a35e49c803b5b86d84a7833b1fab591 | |
| parent | chore(deps): bump debian (#2602) (diff) | |
| download | atuin-1e72e982e0386dc19855c1ebd0313b233c2df448.zip | |
fix: up binding with fish 4.0 (#2613) (#2616)
Signed-off-by: slamp <slaamp@gmail.com>
| -rw-r--r-- | crates/atuin/src/command/client/init/fish.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/atuin/src/command/client/init/fish.rs b/crates/atuin/src/command/client/init/fish.rs index fe58dbed..979388a2 100644 --- a/crates/atuin/src/command/client/init/fish.rs +++ b/crates/atuin/src/command/client/init/fish.rs @@ -6,9 +6,12 @@ pub fn init_static(disable_up_arrow: bool, disable_ctrl_r: bool) { println!("{base}"); + // In fish 4.0 and above the option bind -k doesn't exist anymore. + // We keep it for compatibility with fish 3.x if std::env::var("ATUIN_NOBIND").is_err() { const BIND_CTRL_R: &str = r"bind \cr _atuin_search"; const BIND_UP_ARROW: &str = r"bind -k up _atuin_bind_up +bind up _atuin_bind_up bind \eOA _atuin_bind_up bind \e\[A _atuin_bind_up"; const BIND_CTRL_R_INS: &str = r"bind -M insert \cr _atuin_search"; |
