Last active
June 29, 2023 14:35
-
-
Save xtranophilist/2775965 to your computer and use it in GitHub Desktop.
My zsh aliases
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 ..='cd ..' | |
alias cl="clear; ls" | |
alias ft='find / -type f -exec grep -i $1 {} +' | |
alias gp='git push' | |
alias gpp='git pull; git push' | |
alias gsc='gs; gca' | |
alias gscp='gs; gca; gp' | |
alias gu='git pull' | |
alias jj='java -jar' | |
alias k8000="fuser -k -n tcp 8000" | |
alias k3000="fuser -k -n tcp 3000" | |
alias ll='ls -l' | |
alias n8='echo "nameserver 8.8.8.8" > /etc/resolv.conf' | |
alias p8='ping 8.8.8.8' | |
alias pacin='sudo pacman -S' | |
alias pacup='rl && sudo reflector --verbose --country Singapore --country China --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 su='sudo su' | |
alias vi='vim' | |
alias gra='git remote | xargs -L1 git push --all' | |
alias gpsd='git push server develop' | |
alias serve='python3 -m http.server' | |
alias google-chrome='google-chrome-stable' | |
alias ma='python manage.py makemigrations' | |
alias mi='python manage.py migrate' | |
alias pt='coverage run -m pytest -s && coverage report' | |
f(){ | |
cd ~/pro/$@/$@-f; | |
} | |
b() | |
{ | |
cd ~/pro/$@/$@/; | |
source ~/pro/$@/env/bin/activate; | |
} | |
br() | |
{ | |
b $@; | |
python manage.py runserver 0.0.0.0:8000; | |
} | |
fr() | |
{ | |
f $@; | |
yarn dev; | |
} | |
export EDITOR=vim; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment