Skip to content

Instantly share code, notes, and snippets.

@vinchi777
Last active June 26, 2020 06:47
Show Gist options
  • Save vinchi777/d4ac3b9954b09d90e9c0d2098885b412 to your computer and use it in GitHub Desktop.
Save vinchi777/d4ac3b9954b09d90e9c0d2098885b412 to your computer and use it in GitHub Desktop.
source /Users/fullscale/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle heroku
antigen bundle pip
antigen bundle lein
antigen bundle command-not-found
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting
# Load the theme.
#antigen theme robbyrussell
antigen theme denysdovhan/spaceship-prompt
antigen apply
alias vim="nvim"
alias vi="nvim"
alias be="bundle exec "
alias hubmyprs="hub pr list --format='%au %<(8)%i %t %l%n' | grep ^vinchi777"
alias spotify="spt"
# make capybara selenium work
#export PATH="$(brew --prefix qt@5.5)/bin:$PATH"
#export PATH="/Users/jude/Library/Python/2.7/bin:$PATH"
#export PATH="/Users/jude/Library/Python/3.6/bin:$PATH"
export PATH="/Users/fullscale/go/bin:$PATH"
export EDITOR='nvim'
export TERM="xterm-256color"
export FZF_DEFAULT_OPTS='
--color light,fg:232,bg:255,bg+:116,info:27
'
export HISTSIZE=1000
export SAVEHIST=1000
LC_CTYPE=en_US.UTF-8
LC_ALL=en_US.UTF-8
SPACESHIP_CHAR_SYMBOL="🦄 "
SPACESHIP_CHAR_COLOR_SUCCESS=""
SPACESHIP_PROMPT_ORDER=(
time # Time stampts section
user # Username section
dir # Current directory section
host # Hostname section
git # Git section (git_branch + git_status)
hg # Mercurial section (hg_branch + hg_status)
package # Package version
#node # Node.js section
#ruby # Ruby section
elixir # Elixir section
xcode # Xcode section
swift # Swift section
golang # Go section
php # PHP section
rust # Rust section
haskell # Haskell Stack section
julia # Julia section
#docker # Docker section
aws # Amazon Web Services section
venv # virtualenv section
conda # conda virtualenv section
pyenv # Pyenv section
dotnet # .NET section
ember # Ember.js section
kubecontext # Kubectl context section
exec_time # Execution time
line_sep # Line break
battery # Battery level and status
vi_mode # Vi-mode indicator
jobs # Background jobs indicator
exit_code # Exit code section
char # Prompt character
)
# Tell Antigen that you're done.
# tabtab source for serverless package
# uninstall by removing these lines or running `tabtab uninstall serverless`
#[[ -f /Users/jude/Node/node_modules/tabtab/.completions/serverless.zsh ]] && . /Users/jude/Node/node_modules/tabtab/.completions/serverless.zsh
# tabtab source for sls package
# uninstall by removing these lines or running `tabtab uninstall sls`
#[[ -f /Users/jude/Node/node_modules/tabtab/.completions/sls.zsh ]] && . /Users/jude/Node/node_modules/tabtab/.completions/sls.zsh
# The next line updates PATH for the Google Cloud SDK.
#if [ -f '/Users/jude/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/jude/Downloads/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
#if [ -f '/Users/jude/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/jude/Downloads/google-cloud-sdk/completion.zsh.inc'; fi
#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
alias loadnvm=". $(brew --prefix nvm)/nvm.sh"
source ~/.bin/tmuxinator.zsh
if [ "$TMUX" = "" ]; then tmux; fi
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
fpath+=${ZDOTDIR:-~}/.zsh_functions
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/fullscale/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/fullscale/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/fullscale/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/fullscale/google-cloud-sdk/completion.zsh.inc'; fi
# fbl - checkout git branch, sorted by most recent commit
fbl() {
local branches branch
branches=$(git branch --sort=-committerdate --format="%(refname:short)") &&
branch=$(echo "$branches" | fzf +m --preview="git log -3 '{1}'") &&
git checkout $(echo "$branch" | awk '{print $1}' | sed "s/.* //")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment