~razzi/fish-functions

ee9f0a97f06cb5c59716cb69677843262b6c2b7c — Razzi Abuissa 3 months ago 22d74ff
Some function clean up and a todo
3 files changed, 3 insertions(+), 3 deletions(-)

M functions/edit.fish
M functions/git-add.fish
M functions/git-commit.fish
M functions/edit.fish => functions/edit.fish +1 -2
@@ 4,6 4,5 @@ function edit
        return
    end

    vtab $argv
    # $EDITOR $argv
    $EDITOR $argv
end

M functions/git-add.fish => functions/git-add.fish +1 -0
@@ 1,5 1,6 @@
function git-add
    if not string-empty $argv
        # TODO `...` could be replaced with ../.. as abbr
        if test "$argv" = '...'
            git add ../..
        else

M functions/git-commit.fish => functions/git-commit.fish +1 -1
@@ 37,7 37,7 @@ function git-commit
                    git commit -m "Rename $from to $to"
                end
            case '*'
                echo "Multiple files changes; add a commit message"
                echo "Multiple files changed; add a commit message"
        end
    else
        git commit -m (echo $argv)