Last active
January 24, 2018 01:08
-
-
Save chesster/563bbd5165fccc81127d200ebe7f62e0 to your computer and use it in GitHub Desktop.
ZSH config
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
export CLICOLOR=1 | |
export ZSH=/Users/lukasz/.oh-my-zsh | |
export SSH_KEY_PATH="~/.ssh/rsa_id" | |
source $HOME/.iterm2_shell_integration.zsh | |
source $HOME/.config/nvim/plugged/gruvbox/gruvbox_256palette_osx.sh | |
source /usr/local/Cellar/autojump/22.5.1/etc/autojump.sh | |
source $HOME/.profile | |
source $ZSH/oh-my-zsh.sh | |
source $HOME/.shell_prompt.sh | |
CASE_SENSITIVE="true" | |
DISABLE_AUTO_UPDATE="true" | |
HIST_STAMPS="yyyy/mm/dd" | |
plugins=( | |
# brew | |
autojump | |
cp | |
django | |
git | |
git-flow | |
gitignore | |
pip | |
tmux | |
# vim-inteaction | |
) | |
gt() { grep --color=always -n -Rs $2 $1 . } | |
gtf() { grep -Rl $2 $1 . } | |
h() { cat $HISTFILE | grep $1 } | |
alias -s pdf="evince" | |
alias -s {jpg,JPG,jpeg,JPEG,png,PNG,gif,GIF}="geeqie" | |
alias -s {mp3,ogg,wav,flac}="mplayer" | |
alias -s {mpg,mpeg,avi,ogm,wmv,m4v,mp4,mov}="mplayer -idx" | |
#alias -s {mpg,mpeg,avi,ogm,wmv,m4v,mp4,mov}="vlc" | |
alias -s {txt}="vim" | |
alias -g ...="../.." | |
alias -g ALL="print -C 1 **/**" | |
alias -g DO="| xargs -n1 " | |
alias -g G="| egrep -i" | |
alias -g GI="| egrep -iv" | |
alias -g L="| less" | |
alias -g M="| more" | |
alias -g S="| sort" | |
alias -g NOCOLOR='|sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"' | |
setopt always_to_end | |
setopt auto_resume | |
setopt autocd | |
setopt complete_in_word | |
setopt extended_history | |
setopt extendedglob | |
setopt hist_ignore_all_dups | |
setopt hist_ignore_space | |
setopt inc_append_history | |
setopt listpacked | |
setopt no_always_last_prompt | |
setopt nobeep | |
setopt prompt_cr | |
setopt share_history | |
setopt short_loops | |
setopt prompt_subst | |
alias 7z9a="sudo 7z a -t7z -mx=9 " | |
alias grep="grep --color=auto" | |
alias rscp='rsync -aP --no-whole-file --inplace' | |
alias rsmv='rscp --remove-source-files' | |
alias v='nvim' | |
alias ls="exa" | |
alias sr="tmux attach" | |
alias su="sudo su" | |
alias tarbc="tar --bzip2 -cvf" | |
alias tarbx="tar --bzip2 -xvf" | |
alias tarc="tar -cvvf" | |
alias targc="tar -cxvf" | |
alias targx="tar -zxvf" | |
alias tarx="tar -xvvf" | |
alias zipc="zip -9 -r " | |
alias SX='autossh -D 1080 ' | |
alias tunel="autossh -f -NT -R 10080:localhost:80 mydevil" | |
alias s="TERM=xterm-256color tmux" | |
alias myhash="mcookie < /dev/urandom" | |
# Docker | |
alias docker_mitm="docker run --rm -it -v ~/.mitmproxy:/home/mitmproxy/.mitmproxy -p 8081:8081 -p 8080:8080 mitmproxy/mitmproxy" | |
alias docker_pybtc="docker run -it -v ~/:/mac lovato/python-2.6 bash" | |
alias docker_postgres="docker run --name lastsignal-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment