Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
My zsh aliases
autoload colors
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 8.8.8.8" > /etc/resolv.conf'
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 pg='ping google.com'
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'
go()
{
cd ~/pro/$@/app;
source ~/pro/$@/env/bin/activate;
}
run()
{
go $@;
k8000;
python manage.py runserver 0.0.0.0:8000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment