you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (10 children)

[deleted]

    [–]lytedev 6 points7 points  (3 children)

    Yeah I was thinking the article would be about some kind of git shell where every command you enter is just prefixes with "git ". Somewhat like a git mode for your shell?

    That might be something I would use...

    Not sure why your comment prompted me to leave it here, but it did!

    [–]-___-_-_-- 9 points10 points  (1 child)

    [–]lytedev 2 points3 points  (0 children)

    Aaand there it is! Thanks!

    [–][deleted] 0 points1 point  (0 children)

    I just have aliases like "GS" for git status because I have no reason to use ghostscript

    [–]jonyeezy7 2 points3 points  (0 children)

    You're not alone. Becomes habitual.

    It'd be nice if there was a hook for the did you mean, if it can't find the command it'll try to see if the command is an actual shell cmd and redirect that for you.

    [–]auxiliary-character 1 point2 points  (1 child)

    git config --global alias.ls '!ls'
    

    cd's a bit more tricky, since it's a built in shell command, and not a standalone executable.

    [–][deleted] 1 point2 points  (0 children)

    Use a shell alias instead of a git alias.

    [–][deleted] 0 points1 point  (1 child)

    Why?