Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
My zsh aliases
autoload colors
PS1="%~ %{%(#~$fg[red]~$fg[blue])%}%#%{$fg[default]%} "
alias ..='cd ..'
alias autopep='autopep8 --in-place --aggressive --aggressive'
alias c2f='xclip -o -selection c'
alias ch='cd /var/www/html'
alias cl="clear; ls"
alias cpr="rsync --progress -ravz" #copy with progressbar
alias cs='cd /var/www/html/static'
alias f2c='xclip -i -selection c'
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 jj='java -jar'
alias k8000="fuser -k -n tcp 8000"
alias ll='ls -l'
alias n8='sudo echo "nameserver" > /etc/resolv.conf'
alias no='su - $(whoami)'
alias ns='nmap -sP'
alias p8='ping'
alias pacin='sudo pacman -S'
alias pg='ping'
alias psx="ps -aux | grep $1"
alias rl='sudo rm -rf /var/lib/pacman/db.lck'
alias snm='sudo service NetworkManager restart'
alias sph='sudo pm-hibernate'
alias sps='sudo pm-suspend'
alias su='sudo su'
alias vi='vim'
cd ~/pro/$@/app;
source ~/pro/$@/env/bin/activate;
go $@;
python runserver;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment