fix(fisher): remove magic-enter and clean up fisher plugin handling

This commit is contained in:
2026-05-22 23:42:50 -04:00
parent af979db1b0
commit 4a9ff30519
3 changed files with 0 additions and 35 deletions
-25
View File
@@ -1,25 +0,0 @@
function magic-enter-cmd --description "Print the command to run when no command was given"
set -l cmd ls
if command git rev-parse --is-inside-work-tree &>/dev/null
set cmd "git status -sb"
end
echo $cmd
end
function magic-enter
set -l cmd (commandline)
if test -z "$cmd"
commandline -r (magic-enter-cmd)
commandline -f suppress-autosuggestion
end
commandline -f execute
end
function magic-enter-bindings --description "Bind magic-enter for default and vi key bindings"
bind \r magic-enter
if functions -q fish_vi_key_bindings
bind -M insert \r magic-enter
bind -M default \r magic-enter
end
end
magic-enter-bindings