Created
January 6, 2020 14:05
-
-
Save kukagg/d9cf9461f4e9964536ad75dacd8bb562 to your computer and use it in GitHub Desktop.
This file contains 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 <sorin.ionescu@gmail.com> | |
# | |
# Source Prezto. | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" | |
fi | |
# Customize to your needs... | |
export LANG=en_US.UTF-8 | |
# aliases | |
alias gst="git status" | |
alias ga="git add" | |
alias gr="git remote" | |
alias gc="git commit" | |
alias gdf="git diff" | |
alias gp="git push" | |
alias gl='git log --topo-order --pretty=format:"${_git_log_medium_format}"' | |
alias cat='bat' | |
alias mmv='noglob zmv -W' | |
alias vi='nvim' | |
alias vim='nvim' | |
alias t='python ~/.tasks/sjl-t/t.py --task-dir ~/.tasks/list --list tasks --delete-if-empty' | |
alias tc='t | wc -l' | |
alias c='clear' | |
alias tmux='tmux -2' | |
alias wee='weechat' | |
alias mutt='neomutt' | |
alias dokku='ssh -t dokku@172.104.250.227' | |
# rbenv | |
eval "$(rbenv init -)" | |
# fasd | |
eval "$(fasd --init auto)" | |
# term | |
set -o vi | |
set -o emacs | |
# tabtab source for serverless package | |
# uninstall by removing these lines or running `tabtab uninstall serverless` | |
[[ -f /Users/kuka/.repos/launchdeck/rabineImageProccessing/node_modules/tabtab/.completions/serverless.zsh ]] && . /Users/kuka/.repos/launchdeck/rabineImageProccessing/node_modules/tabtab/.completions/serverless.zsh | |
# tabtab source for sls package | |
# uninstall by removing these lines or running `tabtab uninstall sls` | |
[[ -f /Users/kuka/.repos/launchdeck/rabineImageProccessing/node_modules/tabtab/.completions/sls.zsh ]] && . /Users/kuka/.repos/launchdeck/rabineImageProccessing/node_modules/tabtab/.completions/sls.zsh | |
###-begin-pm2-completion-### | |
### credits to npm for the completion file model | |
# | |
# Installation: pm2 completion >> ~/.bashrc (or ~/.zshrc) | |
# | |
COMP_WORDBREAKS=${COMP_WORDBREAKS/=/} | |
COMP_WORDBREAKS=${COMP_WORDBREAKS/@/} | |
export COMP_WORDBREAKS | |
if type complete &>/dev/null; then | |
_pm2_completion () { | |
local si="$IFS" | |
IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \ | |
COMP_LINE="$COMP_LINE" \ | |
COMP_POINT="$COMP_POINT" \ | |
pm2 completion -- "${COMP_WORDS[@]}" \ | |
2>/dev/null)) || return $? | |
IFS="$si" | |
} | |
complete -o default -F _pm2_completion pm2 | |
elif type compctl &>/dev/null; then | |
_pm2_completion () { | |
local cword line point words si | |
read -Ac words | |
read -cn cword | |
let cword-=1 | |
read -l line | |
read -ln point | |
si="$IFS" | |
IFS=$'\n' reply=($(COMP_CWORD="$cword" \ | |
COMP_LINE="$line" \ | |
COMP_POINT="$point" \ | |
pm2 completion -- "${words[@]}" \ | |
2>/dev/null)) || return $? | |
IFS="$si" | |
} | |
compctl -K _pm2_completion + -f + pm2 | |
fi | |
###-end-pm2-completion-### | |
export PATH="/usr/local/lib/ruby/gems/2.6.0/bin:/usr/local/bin:/usr/local/opt/ruby/bin:$PATH" | |
export PATH="$PATH:$GOPATH/bin" | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" | |
export PATH="/Applications/Racket v7.3/bin:$PATH" | |
export PATH="$PATH:/Users/kuka/.cargo/bin" | |
export ANDROID_HOME=$HOME/Library/Android/sdk | |
export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$PATH" | |
export PATH="/usr/local/opt/postgresql@10/bin:$PATH" | |
export PSQL_EDITOR="vim -w" | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
autoload -U zmv | |
export PATH="/usr/local/opt/postgresql@9.6/bin:$PATH" | |
# The next line updates PATH for the Google Cloud SDK. | |
if [ -f '/Users/kuka/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/kuka/Downloads/google-cloud-sdk/path.zsh.inc'; fi | |
# The next line enables shell command completion for gcloud. | |
if [ -f '/Users/kuka/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/kuka/Downloads/google-cloud-sdk/completion.zsh.inc'; fi | |
# nvm | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
export FZF_DEFAULT_OPTS='--height=90% --preview="cat {}" --preview-window=right:60%:wrap' | |
export FZF_DEFAULT_COMMAND='rg --files' | |
export FZF_CTRL_T_COMMAND='rg --files' | |
export TERM="xterm-256color" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment