# quick blog reading
alias www="lynx -dump"
# just looks better in git diff this way
alias less="less -S --tabs=4"
# die, Python 2, die!
alias python="echo 'Use bpython!' #"
alias python3="echo 'Use bpython!' #"
alias pip="echo 'Use pip3!' #"
# you know, my git log usually looks like: fix, fix, fix, ...
alias commitpush="git commit -am fix ; git push origin HEAD"
alias pc="packer-color --noconfirm"¬
alias ls="ls --color=auto -sh"¬
alias editterm="vim ~/.config/termite/config"¬
alias vpn="cd ~/Documents/VPN && sudo (do vpn stuff, cause OPSEC)"
That’s all I’m using right now. My ls alias is my favourite however.
alias aliases="nano ~/.config/zsh/.aliases"
alias i3config="nano ~/.config/i3/config"
Typo helpers
alias l='ls -CF'
alias sl='P=(" " █ ░ ▒ ▓); while :; do printf "\e[$[RANDOM%LINES+1];$[RANDOM%COLUMNS+1]f${P[$RANDOM%5]}"; done'
alias cd..="cd .."
alias ..="cd .."
ls helpers
alias ls="ls --color=always --group-directories-first"
alias lsl="ls -Al --color=always --group-directories-first"
alias ll='ls -alF'
alias la='ls -A'
alias ls-size='ls -lah'
Clipboard
alias setclip='xclip -selection c'
alias getclip='xclip -selection clipboard -o'
Pasting
alias pb="curl -sF "c=@${1:--}" -w "%{redirect_url}" 'https://ptpb.pw/?r=1' -o /dev/stderr | setclip"
alias cpb="getclip | pb"
alias paste="curl -F c=@- https://ptpb.pw/"
alias paste2="curl -F 'f:1=<-' ix.io"
chmod
alias chmod='chmod -c'
alias rw-='chmod 600'
alias rwx='chmod 700'
alias r--='chmod 644'
alias r-x='chmod 755'
Usage: portsync.sh hostname port flags
ex. portsync.sh 192.168.1.50 8384 -f
(-f is to fork into background), now you can access port 8384 which has binded to localhost on that server. (useful for services that automatically bind on 127.0.0.1 rather than 0.0.0.0)
# User specific aliases and functions
alias attach="tmux attach -t"
alias be="bundle exec"
alias bu="bundle update"
alias ec="emacsclient -c -a emacs"
alias eq="qpaeq"
alias equalizer="qpaeq"
alias et="emacs -t"
alias ga="git add"
alias gc="git commit"
alias gcm="git commit -m"
alias gco="git checkout"
alias gds="git diff --staged"
alias gdu="git diff --unstaged"
alias gfa="git fetch --all"
alias gm="git merge"
alias gpsh="git push"
alias gpll="git pull"
alias gs="git status"
alias gu="git pull"
alias kops="${GOPATH}/bin/kops"
alias ll="ls -l"
alias lm="ls -l | more"
alias switch="tmux switch -t"
alias test-acceptance="bundle exec rspec spec/acceptance"
alias test-spec="bundle exec rake validate lint spec"
alias tf="terraform"
alias tfp="terraform plan"
alias vim="nvim"