Last active
March 3, 2025 06:17
-
-
Save noizbuster/b48f8f3b06f53ecf50c9f740f52624f2 to your computer and use it in GitHub Desktop.
zshrc command alias
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
# aliases for system | |
alias apt_upgrade_sequence="sudo apt update && sudo apt dist-upgrade -y && sudo apt autoremove -y && sudo apt autoclean" | |
alias swapfree="sudo swapoff -a; sudo swapon -a" | |
# aliases for git | |
alias gits="git status" | |
alias gitf="git fetch --all --prune" | |
alias gitsave="git config credential.helper store" | |
alias gitreload="git fetch --all && git rev-parse --abbrev-ref HEAD | xargs -I {} git reset origin/{} --hard" | |
alias gitwip="git add . && git rev-parse --abbrev-ref HEAD | xargs -I {} git commit --no-verify -m \"{}-WIP\"" | |
alias gitstrip="git reset HEAD^" | |
alias gitp="git rev-parse --abbrev-ref HEAD | xargs -I {} git push origin {} --force" | |
alias gitw="gitwip && gitp" | |
alias gitl="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'" | |
alias gitl2="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'" | |
alias gitl3="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'" | |
alias gitla="git log --all --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'" | |
alias gitla2="git log --all --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'" | |
alias gitla3="git log --all --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'" | |
alias gitsm="git submodule init && git submodule update --recursive" | |
alias gitnaver="git config user.name \"Wonwoo Yang\" && git config user.email [email protected]" | |
alias gitnoiz="git config user.name NoizBuster && git config user.email [email protected]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment