summary refs log tree commit diff stats
path: root/user/settings/fish/functions/magit.fish
blob: 96c9009653841767866ed98bd0ca074a802454ac (plain)
1
2
3
4
5
6
7
8
function magit
    if set --query argv[1]
        set --function repo $argv[1]
    else
        set --function repo $pwd
    end
    emacsclient --suppress-output --eval "(magit-status \"$argv[1]\")"
end