Created
May 15, 2020 17:52
-
-
Save danggrianto/e22a9061485ee92c60aada61858a2245 to your computer and use it in GitHub Desktop.
aliases
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
| # Shell | |
| ## Source .zshrc | |
| alias sozsh="source ~/.zshrc" | |
| ## Edit aliases | |
| alias aliases="vim ~/.aliases" | |
| # Vim | |
| alias vim='nvim' | |
| # Exa https://www.cyberciti.biz/open-source/command-line-hacks/exa-a-modern-replacement-for-ls-written-in-rust-for-linuxunix/ | |
| alias ls=exa | |
| # Docker | |
| alias dcrm='docker-compose rm -fs' | |
| alias dcu='docker-compose up' | |
| alias dcud='docker-compose up -d' | |
| alias dcps='docker-compose ps' | |
| alias dcr='docker-compose run' | |
| alias dcrr='docker-compose run --rm' | |
| alias dce='docker-compose exec' | |
| alias dcb='docker-compose build' | |
| alias dcp='docker-compose pull' | |
| alias dcr='docker-compose restart' | |
| alias dcl='docker-compose logs' | |
| alias dbt='docker build -t' | |
| alias dps='docker ps' | |
| alias dcs='docker-compose stop' | |
| # react-native | |
| alias rn='react-native' | |
| alias zshconfig="vim ~/.zshrc" | |
| alias vimconfig="vim ~/.config/nvim/init.vim" | |
| alias ohmyzsh="vim ~/.oh-my-zsh" | |
| alias setenv="source env/bin/activate" | |
| alias vs="ssh -q -F ./.ssh_config" | |
| alias wgets='H="--header"; wget $H="Accept-Language: en-us,en;q=0.5" $H="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" $H="Connection: keep-alive" -U "Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2" --referer=http://www.askapache.com/ ' | |
| alias pip_uninstall='pip freeze | xargs pip uninstall -y' | |
| # DOCKER | |
| alias dl='docker ps -l -q' | |
| # python | |
| alias rmpycache="find . -type d -name __pycache__ \ | |
| -o \( -type f -name '*.py[co]' \) -print0 \ | |
| | xargs -0 rm -rf" | |
| # Misc | |
| alias cat='bat' | |
| alias ping='prettyping --nolegend' | |
| # TMUX | |
| alias tn="tmux -u new -s" | |
| alias ts="tmux -u switch -t" | |
| alias ta="tmux -u a -t" | |
| alias echo_cd="echo \"cd \"`pwd`>> $VIRTUAL_ENV/bin/postactivate" | |
| alias virtualenvconf="vim $VIRTUAL_ENV/bin/postactivate" | |
| alias weather="curl http://wttr.in/philadelphia" | |
| # kubernetes | |
| alias k="kubectl" | |
| # ansible | |
| alias ap="ansible-playbook" | |
| alias please='sudo !!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment