Skip to content

Instantly share code, notes, and snippets.

@meisinger
Created January 22, 2020 20:15
Show Gist options
  • Save meisinger/37407d54ee413ae6941020badd18bcee to your computer and use it in GitHub Desktop.
Save meisinger/37407d54ee413ae6941020badd18bcee to your computer and use it in GitHub Desktop.
export TERM="xterm-256color"
export EDITOR='nvim'
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH
export ZSH="/Users/meisinger/.oh-my-zsh"
POWERLEVEL9K_MODE='nerdfont-complete'
ZSH_THEME="powerlevel9k/powerlevel9k"
plugins=(
git
mercurial
docker
brew
osx
ssh-agent
zsh-autosuggestions
zsh-syntax-highlighting
)
zstyle :omz:plugins:ssh-agent agent-forwarding on
zstyle :omz:plugins:ssh-agent identities id_rsa
zstyle :omz:plugins:ssh-agent lifetime 4h
. ${ZSH}/oh-my-zsh.sh
[ -s ~/.nvm/nvm.sh ] && source ~/.nvm/nvm.sh
alias vim='nvim'
alias mux='tmuxinator'
alias zshconfig="nvim ~/.zshrc"
alias zshreload=". ~/.zshrc"
alias ohmyzsh="nvim ~/.oh-my-zsh"
if [ -f 'google-cloud/google-cloud-sdk/path.zsh.inc' ]; then
. 'google-cloud/google-cloud-sdk/path.zsh.inc';
fi
if [ -f 'google-cloud/google-cloud-sdk/completion.zsh.inc' ]; then
. 'google-cloud/google-cloud-sdk/completion.zsh.inc';
fi
POWERLEVEL9K_SHORTEN_DIR_LENGTH=3
POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR=""
POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR=""
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%F{white}λ "
POWERLEVEL9K_TIME_FORMAT='%D{%I:%M:%S %p}'
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(user dir dir_writable vcs ssh)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs time)
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
vault_tmux_buffer() {
tmux set-buffer -b pgb-user `echo $1 | jq .data.data.username | tr -d '"'`
tmux set-buffer -b pgb-pwd `echo $1 | jq .data.data.password | tr -d '"'`
}
_tmuxinator() {
local commands projects
commands=(${(f)"$(tmuxinator commands zsh)"})
projects=(${(f)"$(tmuxinator completions start)"})
if (( CURRENT == 2 )); then
_alternative \
'commands:: _describe -t commands "tmuxinator subcommands" commands' \
'projects:: _describe -t projects "tmuxinator projects" projects'
elif (( CURRENT == 3)); then
case $words[2] in
copy|debug|delete|open|start)
_arguments '*:projects:($projects)'
;;
esac
fi
return
}
compdef _tmuxinator tmuxinator mux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment