Subjective Dev Life Hacks
Aliases
Aliases are available in most modern shells. They save time by reducing the amount of characters
needed to invoke common commands.
alias ga='git add . and git add -u .'
alias gb='git branch'
alias gs='git status'
alias gt='cd (git rev-parse --show-cdup)'
alias gbd='git branch --delete'
alias gca='git commit --amend'
alias glg="git log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias gpr='git pull --rebase'
alias nus='nvm use stable'
alias gcam='git commit -a -m'
alias gcan='git commit --amend --no-edit'
alias gcma='git checkout main'
Git Decorations in Your Shell
You spend a lot of time in your shell, make it nice to look at and work for you.
- Bash
- Zsh
- Fish
Command History and Searching
- Bash
- Zsh
- Fish
- History is built-in!
- fzf for Fish
Directory Jumping
Life's too short to type long directory names.
- Bash
- Zsh
- Fish
IDE Plugins
You probably spend even more time in your IDE, so spruce it up a bit.
- Shortcuts: The Guide to VSCode Shortcuts
- ESLint: VSCode ESLint
- Code Spell Checker: Spell Checker Plugin
- Rainbow Brackets: Rainbow Brackets Plugin
- Jest: Jest Plugin
- Prettier: Prettier VSCode Plugin, run it on save!
- Vim: 😁 😈