Skip to content

Instantly share code, notes, and snippets.

@salman0ansari
Created September 10, 2022 13:48
Show Gist options
  • Save salman0ansari/78b2558e1a01b27c67f1174dff8d79ef to your computer and use it in GitHub Desktop.
Save salman0ansari/78b2558e1a01b27c67f1174dff8d79ef to your computer and use it in GitHub Desktop.
zsh alias
alias pacup="sudo pacman -Syu"
alias yayup="yay -Syu"
alias cleanup="yay -Scc"
alias server="ssh ubuntu@$IP -i ~/.ssh/mumbaiaws.pem"
alias printpath="echo $PWD"
# spelling correction
alias exi="exit"
alias exti="exit"
alias eitx="exit"
alias eixt="exit"
alias exiyt="exit"
alias exity="exit"
alias lss="ls"
alias clea="clear"
alias cl="clear"
# start/restart something
alias startmongo="sudo mongod --dbpath /usr/local/mongodb/"
alias startdns="sudo systemctl start warp-svc.service"
alias restartssh="sudo systemctl restart sshd.service"
# manage cloudflare warp
alias dnson="warp-cli connect"
alias dnsoff="warp-cli disconnect"
# navigation
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment