Live data from Hacker News

Git git git git git

caiustheory.com

1–10 of 244 posts

Re: Git git git git git

#3
I want a terminal that highlights things it thinks are off. Like when I type cd cd or git git. But I don't want it to auto fix nor wait until the command is issued to complain.

This is because I want to be the sole controller of what command is actually issued. Call me an old curmudgeon but I just don't trust the auto fix solutions.

Edit: had no idea about Fish. Thank you, all.

Re: Git git git git git

#5

I want a terminal that highlights things it thinks are off. Like when I type cd cd or git git. But I don't want it to auto fix nor wait until the command is issued to complain. This is because I want to be the sole controller of what command is actually issued. Call me an old curmudgeon but I just don't trust the auto fix solutions. Edit: had no idea about Fish. Thank you, all.

Fish does this for missing files (though not invalid subcommands): https://fishshell.com/

Re: Git git git git git

#6

I want a terminal that highlights things it thinks are off. Like when I type cd cd or git git. But I don't want it to auto fix nor wait until the command is issued to complain. This is because I want to be the sole controller of what command is actually issued. Call me an old curmudgeon but I just don't trust the auto fix solutions. Edit: had no idea about Fish. Thank you, all.

That's kinda what fish -- the friendly interactive shell - does, but more towards tab autocompletion than error detection.

Re: Git git git git git

#7

I want a terminal that highlights things it thinks are off. Like when I type cd cd or git git. But I don't want it to auto fix nor wait until the command is issued to complain. This is because I want to be the sole controller of what command is actually issued. Call me an old curmudgeon but I just don't trust the auto fix solutions. Edit: had no idea about Fish. Thank you, all.

Fish shell like syntax highlighting for zsh: https://github.com/zsh-users/zsh-syntax-highlighting

Fish-like autosuggestions for zsh: https://github.com/zsh-users/zsh-autosuggestions

Re: Git git git git git

#8

Why type out `git status`? I use `gst`, and lots of other great aliases provided by the [oh-my-zsh git plugin]( https://github.com/robbyrussell/oh-my-zsh/blob/master/plugin... )

I used to do that, but I found it wasn’t actually saving me any cognitive load.

My newer philosophy toward git aliases is the one described here: http://gggritso.com/human-git-aliases. After reading this I totally overhauled my .gitconfig and replaced it with the one described here and I’m a lot happier.

Re: Git git git git git

#9
post #2

This post would have been a lot better if he showed how to do a git subcommand that launched itself, which is where i thought he was going.

This isn't too hard. Aliases can expand to arbitrary shell commands, as shown in the article. So you can do something like:

    git config --global alias.bomb '!git bomb & git bomb'
to make a fork bomb.

Re: Git git git git git

#10

Why type out `git status`? I use `gst`, and lots of other great aliases provided by the [oh-my-zsh git plugin]( https://github.com/robbyrussell/oh-my-zsh/blob/master/plugin... )

I used to do that, but I found it wasn’t actually saving me any cognitive load. My newer philosophy toward git aliases is the one described here: http://gggritso.com/human-git-aliases . After reading this I totally overhauled my .gitconfig and replaced it with the one described here and I’m a lot happier.

I don't use either one anymore. I've switched to magit, which is faster than both and can also give you interactive menus and reminders of commands if you want.
Post reply on HN