logoalt Hacker News

fphilipetoday at 9:33 AM3 repliesview on HN

I use the colon as EDITOR with Git when I want to do an interactive rebase combined with auto squash without having to edit the todo list.

I have an alias[1] for that which I call a quick interactive rebase:

    riq = -c sequence.editor=: rebase --interactive
[1]: https://github.com/fphilipe/dotfiles/blob/94f2ff70bade070694...

Replies

teddyhtoday at 12:57 PM

That seems unsafe. It assumes that the editor is started via a shell command, and not executed directly. But there is no actual binary /usr/bin/: but there is a /usr/bin/true; I would use that instead.

show 1 reply
refptoday at 10:07 AM

damn, nice one — definitely gonna use this myself (or variations thereof)!

__del__today at 10:21 AM

nice dotfile