Last active
May 6, 2019 04:34
-
-
Save daveed/de6ac441b47c4215ba6605a73af78149 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
# | |
# Executes commands at the start of an interactive session. | |
# | |
# Authors: | |
# Sorin Ionescu <[email protected]> | |
# | |
# Source Prezto. | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" | |
fi | |
# rbenv | |
eval "$(rbenv init -)" | |
# Custom aliases | |
alias a='alias' | |
## Docker | |
a dps='docker ps' | |
a dpsa='dps -a' | |
a di='docker images' | |
a dia='docker images -a' | |
a dcb='docker-compose build --force-rm' | |
a dcu='docker-compose up --remove-orphans' | |
a dcud='docker-compose up --remove-orphans -d' | |
a dcs='docker-compose stop' | |
a dcbu='dcb && dcu' | |
a dcsbu='dcs && dcbu' # harder | |
a dcl='docker-compose logs -f' | |
a dcudl='dcud && dcl' | |
# Git | |
a git-remove-untracked='git fetch --prune && git branch -r | awk "{print \$1}" | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk "{print \$1}" | xargs git branch -d' | |
# AWS Elastic Beanstalk | |
a eb-status='echo `eb status --profile fintech-dev-admin | grep -i "deployed version"|cut -d : -f2`' | |
# ImageMagick | |
export PATH="/usr/local/opt/imagemagick@6/bin:$PATH" | |
# Elixir iex history | |
export ERL_AFLAGS="-kernel shell_history enabled" | |
# Elixir version manager | |
. ${HOME}/.asdf/asdf.sh | |
. ${HOME}/.asdf/completions/asdf.bash | |
# tmux highlighting | |
export TERM=xterm-256color | |
# Postgres | |
export PATH="/usr/local/opt/[email protected]/bin:$PATH" | |
# Ports | |
a tcp-listen='lsof -PiTCP -sTCP:LISTEN' | |
# noglob | |
a sed='noglob sed' | |
a grep='noglob grep' | |
a rake='noglob rake' | |
a bundle='noglob bundle' | |
a ruby-syntax='find . | grep ".*\.rb$" | xargs -L 1 ruby -c' | |
# # Go | |
# export GOPATH=${HOME}/www/go | |
# export GOROOT=/usr/local/opt/go/libexec | |
# export PATH=${PATH}:${GOPATH}/bin | |
# export PATH=${PATH}:${GOROOT}/bin | |
# tabtab source for serverless package | |
# uninstall by removing these lines or running `tabtab uninstall serverless` | |
[[ -f /Users/daveed/Documents/www/ruby/welcome/serverless/node_modules/tabtab/.completions/serverless.zsh ]] && . /Users/daveed/Documents/www/ruby/welcome/serverless/node_modules/tabtab/.completions/serverless.zsh | |
# tabtab source for sls package | |
# uninstall by removing these lines or running `tabtab uninstall sls` | |
[[ -f /Users/daveed/Documents/www/ruby/welcome/serverless/node_modules/tabtab/.completions/sls.zsh ]] && . /Users/daveed/Documents/www/ruby/welcome/serverless/node_modules/tabtab/.completions/sls.zsh | |
# tabtab source for slss package | |
# uninstall by removing these lines or running `tabtab uninstall slss` | |
[[ -f /Users/daveed/Documents/www/ruby/welcome/serverless/node_modules/tabtab/.completions/slss.zsh ]] && . /Users/daveed/Documents/www/ruby/welcome/serverless/node_modules/tabtab/.completions/slss.zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment