aboutsummaryrefslogtreecommitdiffstats
path: root/src/shell
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell')
-rw-r--r--src/shell/atuin.fish11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/shell/atuin.fish b/src/shell/atuin.fish
index 5d59d01d..b382b7e3 100644
--- a/src/shell/atuin.fish
+++ b/src/shell/atuin.fish
@@ -1,6 +1,4 @@
-
set -gx ATUIN_SESSION (atuin uuid)
-set -gx ATUIN_HISTORY (atuin history list)
function _atuin_preexec --on-event fish_preexec
set -gx ATUIN_HISTORY_ID (atuin history start "$argv[1]")
@@ -9,7 +7,8 @@ end
function _atuin_postexec --on-event fish_postexec
set s $status
if test -n "$ATUIN_HISTORY_ID"
- RUST_LOG=error atuin history end $ATUIN_HISTORY_ID --exit $s &; disown
+ RUST_LOG=error atuin history end $ATUIN_HISTORY_ID --exit $s &
+ disown
end
end
@@ -22,7 +21,7 @@ function _atuin_search
end
if test -z $ATUIN_NOBIND
- bind -k up '_atuin_search'
- bind \eOA '_atuin_search'
- bind \e\[A '_atuin_search'
+ bind -k up _atuin_search
+ bind \eOA _atuin_search
+ bind \e\[A _atuin_search
end