Last active
August 18, 2023 12:13
-
-
Save de-raaf-media/ef13423a863fd0a6bdc86f6247fa0f02 to your computer and use it in GitHub Desktop.
zsh 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
# General | |
alias zshconfig="vim ~/.zshrc" | |
alias zshreload="source ~/.zshrc" | |
alias hostfile="sudo vim /etc/hosts" | |
alias vi="vim" | |
# Vagrant | |
alias vu="vagrant up" | |
alias vp="vagrant provision" | |
alias vs="vagrant provision" | |
# Unix | |
alias c="clear" | |
alias port="netstat -ntlp" | |
alias copy="xclip -selection clipboard && echo 'Copied to clipboard.'" | |
alias path="pwd | xclip -selection clipboard && echo 'Path copied to clipboard'" | |
alias sshkey="cat ~/.ssh/id_rsa.pub | xclip -selection clipboard && echo 'Public SSH copied to clipboard.'" | |
# Others | |
alias y="yarn" | |
# Git and Github | |
alias ga="git add" | |
alias gd="git diff" | |
alias gf="get fetch" | |
alias gs="git status" | |
alias gb="git branch" | |
alias gc="git commit -S" | |
alias gl="git log --oneline --graph" | |
alias gcl="git clone" | |
alias gco="git checkout" | |
alias gpr="git pull-request" | |
alias gdc="git diff --cached" | |
alias gpoh='git push origin HEAD' | |
alias glf="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias nah="git reset --hard; git clean -df;" | |
# Laravel | |
alias art="php artisan" | |
alias tinker="art tinker" | |
alias migrate="art migrate" | |
alias routes="art route:list" | |
alias fresh="art migrate:fresh --seed" | |
alias serve="art serve --host 0.0.0.0" | |
# APT | |
alias purge="sudo apt purge" | |
alias update="sudo apt update" | |
alias list="apt list --upgradable" | |
alias remove="sudo apt autoremove" | |
alias upgrade="sudo apt full-upgrade" | |
# Docker | |
alias dl="docker ps -l -q" | |
alias dps="docker ps" | |
alias dpa="docker ps -a" | |
alias di="docker images" | |
alias dip="docker inspect --format '{{ .NetworkSettings.IPAddress }}'" | |
alias dkd="docker run -d -P" | |
alias dki="docker run -it -P" | |
alias dex="docker exec -it" | |
alias dco="docker-compose" | |
alias dcl="docker-compose logs -f" | |
# Valet | |
alias php="valet php" | |
alias composer="valet composer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment