Hacker News new | ask | show | jobs
by pokler 913 days ago
alias please="sudo"

alias amend="git commit --amend --no-edit"

alias vim="nvim"

2 comments

For git aliases you should definitely checkout alises[1] you can define in your global git config, ~/.gitconfig, and the fact git will let you define custom subcommand if you create a `git-foo` executable in your PATH, for example, create a executable shell file called, `git-foo` somewhere in your PATH and you can run it like `git foo`.

[1]: https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases

vim="nvim" is wild