diff options
Diffstat (limited to 'user/settings/fish/functions/magit.fish')
-rw-r--r-- | user/settings/fish/functions/magit.fish | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/user/settings/fish/functions/magit.fish b/user/settings/fish/functions/magit.fish new file mode 100644 index 00000000..048fd42f --- /dev/null +++ b/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 |