4 ms·
It seems you are using bash and need to up your shell game, allow to suggest zsh which allow for thing such as: !!:s/status/stop/ This will recall the last co
by bigbugbag 11y ago
It seems you are using bash and need to up your shell game, allow to suggest zsh which allow for thing such as:
!!:s/status/stop/
This will recall the last command and substitute status with stop.
!-2:s/status/edit/
Will recall two commands back from history and substitute status with edit.
See http://reasoniamhere.com/2014/01/11/outrageously-useful-tips-to-master-your-z-shell/ http://reasoniamhere.com/2014/01/11/outrageously-useful-tips...
For added awesomeness have a look into history-substring-search[1], zsh-autosuggestions[2], zsh-syntax-highlighting[3].
[1]: https://github.com/zsh-users/zsh-history-substring-search https://github.com/zsh-users/zsh-history-substring-search
[2]: https://github.com/zsh-users/zsh-autosuggestions https://github.com/zsh-users/zsh-autosuggestions
[3]: https://github.com/zsh-users/zsh-syntax-highlighting https://github.com/zsh-users/zsh-syntax-highlighting