Last active
January 20, 2025 11:31
-
-
Save isDipesh/2775965 to your computer and use it in GitHub Desktop.
My 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
alias ft='find / -type f -exec grep -i $1 {} +' | |
alias jj='java -jar' | |
alias k8000="fuser -k -n tcp 8000" | |
alias k3000="fuser -k -n tcp 3000" | |
alias n8='echo "nameserver 8.8.8.8" > /etc/resolv.conf' | |
alias ng='sudo service nginx stop; sudo service httpd start' | |
alias no='su - $(whoami)' | |
alias ns='nmap -sP 192.168.0.1/24' | |
alias p8='ping 8.8.8.8' | |
alias pacin='sudo pacman -S' | |
alias pacup='rl && sudo reflector --verbose --sort rate --save /etc/pacman.d/mirrorlist && sudo pacman -Syyu' | |
alias pg='ping google.com' | |
alias psx="ps -aux | grep $1" | |
alias rl='sudo rm -rf /var/lib/pacman/db.lck' | |
alias snm='sudo systemctl restart NetworkManager' | |
alias su='sudo su' | |
alias vi='vim' | |
alias serve='python3 -m http.server' | |
alias ma='python manage.py makemigrations' | |
alias mi='python manage.py migrate' | |
alias zellij='zellij options --disable-mouse-mode' | |
#git | |
alias gpom='git pull origin main' | |
alias gum='git pull origin main && git push origin main' | |
alias gp='git push' | |
alias gpp='git pull; git push' | |
alias gsc='gs; gca' | |
alias gscp='gs; gca; gp' | |
alias gu='git pull' | |
alias gra='git remote | xargs -L1 git push --all' | |
alias gpsd='git push server develop' | |
fr(){ | |
cd ~/pro/$@/$@-f; | |
pnpm dev; | |
} | |
f(){ | |
cd ~/pro/$@/$@-f; | |
} | |
s() | |
{ | |
cd ~/pro/$@/$@/; | |
} | |
y(){ | |
cd ~/pro/$@/; | |
} | |
yr(){ | |
cd ~/pro/$@/; | |
pnpm dev; | |
} | |
sr() | |
{ | |
s $@; | |
python manage.py runserver 0.0.0.0:8000; | |
} | |
export EDITOR=vim; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment