fish: add functions to open magit/dired in emacs
Alan Pearce alan@alanpearce.eu
Sat, 18 May 2024 11:24:20 +0200
2 files changed, 16 insertions(+), 0 deletions(-)
A user/settings/fish/functions/dired.fish
@@ -0,0 +1,8 @@+function dired + if set --query argv[1] + set --function repo $argv[1] + else + set --function repo $pwd + end + emacsclient -e "(magit-status \"$argv[1]\")" +end
A user/settings/fish/functions/magit.fish
@@ -0,0 +1,8 @@+function magit + if set --query argv[1] + set --function repo $argv[1] + else + set --function repo $pwd + end + emacsclient -e "(magit-status \"$argv[1]\")" +end