Last active
February 12, 2026 19:23
-
-
Save wokalek/75a643b52bec642671b4a215a6e3e7c6 to your computer and use it in GitHub Desktop.
My best bash aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Bash | |
| alias c="clear" | |
| alias d="exit" | |
| alias beep='powershell "[console]::beep(500,300)"' | |
| alias nvm="fnm" | |
| # Git | |
| alias gl="git log" | |
| alias gg="git log --oneline --graph --all" | |
| alias gs="git status" | |
| alias gb="git branch --sort=-committerdate" | |
| alias gbc="git branch --show-current" | |
| alias gtags="git for-each-ref --sort=-creatordate --format '%(creatordate:iso8601) %(refname:short) → %(objectname) (%(objecttype))' refs/tags" | |
| alias ga="git add ." | |
| alias gr="git reset ." | |
| alias gc="git commit" | |
| alias gca="git commit --amend" | |
| alias gstash="git stash" | |
| alias gnew="git checkout -b" | |
| alias gdel="git branch -D" | |
| alias gsw="git switch" | |
| alias master="git checkout master" | |
| alias develop="git checkout develop" | |
| alias gfetch="git fetch origin" | |
| alias gfetchc="gbc | xargs git fetch origin" | |
| alias gfetchm="git fetch origin master" | |
| alias gfetchd="git fetch origin develop" | |
| alias gpull="gbc | xargs git pull origin" | |
| alias gpullm="git pull origin master" | |
| alias gpulld="git pull origin develop" | |
| alias gms="git merge --squash --no-commit --strategy-option=theirs" | |
| alias gpush="gbc | xargs git push origin" | |
| alias gpushs="gpush -o ci.skip" | |
| alias gpushf="gpush --force" | |
| alias gpushfs="gpush --force -o ci.skip" | |
| alias gyolo="ga && gc && gpush" | |
| # Frontend package managers | |
| alias ii="npm i -g @antfu/ni" | |
| alias p="na" | |
| alias out="na outdated --long" | |
| alias v="ni -v" | |
| alias i="ni" | |
| alias ci="nci" | |
| alias un="nun" | |
| alias u="nup" | |
| alias up="nup -i -L" | |
| alias r="nr" | |
| alias x="nlx" | |
| alias dev="nr dev" | |
| alias build="nr build" | |
| alias generate="nr generate" | |
| alias postinstall="nr postinstall" | |
| alias typecheck="nr typecheck" | |
| alias lint="nr lint" | |
| alias lint:fix="nr lint:fix" | |
| # Docker | |
| alias dive="docker run -ti --rm -v /var/run/docker.sock:/var/run/docker.sock docker.io/wagoodman/dive" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment