Shell aliases I use every day.
This file contains 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
alias zshso="source ~/.zshrc" | |
alias clr="clear" | |
alias hist=history | |
alias ytdl="youtube-dl" # Example: ytdl https://www.youtube.com/watch?v=BBJa32lCaaY | |
alias graph="graph-easy" # Example: echo '[a],[c]->[b]' | graph --as=boxart | |
alias pn="pnpm" # Example: pn i (install packages from package.json) | |
alias cat="bat -p" # Replace cat with bat (plain style) | |
alias catt="bat" # Use fully styled bat | |
alias catp="/bin/cat" # Escape hatch to run the original `cat` | |
alias bdiff="git diff" | |
alias lgit="lazygit" | |
alias ldocker="lazydocker" | |
alias ff="fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'" | |
alias rgf="rg --files | rg" # Find files using ripgrep. Example: rgf some-file | |
alias bcn="bacon" # 'bacon' is Rust background code runner | |
# iterm aliases | |
alias imcat="~/.iterm2/imgcat" # Example: imcat ~/Download/my-image.png | |
alias imls="~/.iterm2/imgls" | |
# common git aliases | |
alias clone="git clone" | |
alias commit="git commit" | |
alias add="git add" | |
alias pull="git pull" | |
alias push="git push" | |
alias status="git status" | |
alias gl="git log --graph --date=format:'%Y-%m-%d %H:%M' --pretty=format:'%Cblue%>(12)%ad %C(yellow)%h %Cgreen%<(7)%aN%Cred%d %Creset%s'" | |
alias co="git checkout" | |
alias stash="git stash" | |
alias rebase="git rebase" | |
alias reset="git reset" | |
alias merge="git merge" | |
alias bisect="git bisect" | |
alias rustface=~/code/playground/rustface/target/release/rustface |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run this command to add the aliases to your shell (supports bash or zsh):