From c05d2850420a2c163b8f62c33a6cef7c0ae1ad8d Mon Sep 17 00:00:00 2001 From: Vladislav Stepanov <8uk.8ak@gmail.com> Date: Fri, 14 Apr 2023 23:18:58 +0400 Subject: Workspace reorder (#868) * Try different workspace structure Move main crate (atuin) to be on the same level with other crates in this workspace * extract common dependencies to the workspace definition * fix base64 v0.21 deprecation warning * questionable: update deps & fix chrono deprecations possible panic sites are unchanged, they're just more visible now * Revert "questionable: update deps & fix chrono deprecations" This reverts commit 993e60f8dea81a1625a04285a617959ad09a0866. --- src/shell/atuin.fish | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/shell/atuin.fish (limited to 'src/shell/atuin.fish') diff --git a/src/shell/atuin.fish b/src/shell/atuin.fish deleted file mode 100644 index de90b156..00000000 --- a/src/shell/atuin.fish +++ /dev/null @@ -1,40 +0,0 @@ -set -gx ATUIN_SESSION (atuin uuid) - -function _atuin_preexec --on-event fish_preexec - if not test -n "$fish_private_mode" - set -gx ATUIN_HISTORY_ID (atuin history start -- "$argv[1]") - end -end - -function _atuin_postexec --on-event fish_postexec - set s $status - if test -n "$ATUIN_HISTORY_ID" - RUST_LOG=error atuin history end --exit $s -- $ATUIN_HISTORY_ID &>/dev/null & - disown - end -end - -function _atuin_search - set h (RUST_LOG=error atuin search $argv -i -- (commandline -b) 3>&1 1>&2 2>&3) - commandline -f repaint - if test -n "$h" - commandline -r $h - end -end - -function _atuin_bind_up - # Fallback to fish's builtin up-or-search if we're in search or paging mode - if commandline --search-mode; or commandline --paging-mode - up-or-search - return - end - - # Only invoke atuin if we're on the top line of the command - set -l lineno (commandline --line) - switch $lineno - case 1 - _atuin_search --shell-up-key-binding - case '*' - up-or-search - end -end -- cgit v1.3.1