Created
April 28, 2020 04:26
-
-
Save aaronsmulktis/8ceb6d7929f1376c3bbf421eeb74323d 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
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="terminalparty" | |
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to use hyphen-insensitive completion. | |
# Case-sensitive completion must be off. _ and - will be interchangeable. | |
# HYPHEN_INSENSITIVE="true" | |
# Uncomment the following line if pasting URLs and other text is messed up. | |
# DISABLE_MAGIC_FUNCTIONS=true | |
# Uncomment the following line to enable command auto-correction. | |
ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# You can set one of the optional three formats: | |
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# or set a custom format using the strftime function format specifications, | |
# see 'man strftime' for details. | |
# HIST_STAMPS="mm/dd/yyyy" | |
HISTTIMEFORMAT="%d/%m/%y %T " | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
mkdir -p $HOME/.oh-my-zsh/custom/plugins/ | |
# source <(antibody init) | |
# antibody bundle < ~/.zsh_plugins.txt | |
# Static loading (faster?) | |
antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh | |
# (removed) zsh-users/zsh-syntax-highlighting | |
source ~/.zsh_plugins.sh | |
export ANTIBODY_HOME=~/.antibody | |
source $HOME/.oh-my-zsh/custom/plugins/zsh-histdb/sqlite-history.zsh | |
autoload -Uz add-zsh-hook | |
add-zsh-hook precmd histdb-update-outcome | |
# Which plugins would you like to load? | |
# Standard plugins can be found in ~/.oh-my-zsh/plugins/* | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
# plugins=(git brew nvm zsh-256color histdb docker ansiweather) | |
plugins=(git brew nvm docker) | |
# source $ZSH_CUSTOM/plugins/calc/calc.plugin.zsh | |
fpath=(/usr/local/share/zsh-completions $fpath) | |
fpath+=~/.zfunc | |
# May need this: rm -f ~/.zcompdump; compinit | |
# May need this: chmod go-w '/usr/local/share' | |
# Integrate with histdb ZSH plugin | |
_zsh_autosuggest_strategy_histdb_top() { | |
local query="select commands.argv from | |
history left join commands on history.command_id = commands.rowid | |
left join places on history.place_id = places.rowid | |
where commands.argv LIKE '$(sql_escape $1)%' | |
group by commands.argv | |
order by places.dir != '$(sql_escape $PWD)', count(*) desc limit 1" | |
suggestion=$(_histdb_query "$query") | |
} | |
source $HOME/.oh-my-zsh/custom/plugins/zsh-histdb/histdb-interactive.zsh | |
bindkey '^r' _histdb-isearch | |
ZSH_AUTOSUGGEST_STRATEGY=histdb_top | |
# User configuration | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
lazynvm() { | |
unset -f nvm node npm | |
export NVM_DIR=~/.nvm | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
} | |
nvm() { | |
lazynvm | |
nvm $@ | |
} | |
node() { | |
lazynvm | |
node $@ | |
} | |
npm() { | |
lazynvm | |
npm $@ | |
} | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
alias wela='ansiweather -l "Los Angeles",US -u imperial -s true' | |
alias weny='ansiweather -l "New York",US -u imperial -s true' | |
# heroku autocomplete setup | |
autoload bashcompinit | |
bashcompinit | |
HEROKU_AC_BASH_SETUP_PATH=$HOME/Library/Caches/heroku/autocomplete/bash_setup && test -f $HEROKU_AC_BASH_SETUP_PATH && source $HEROKU_AC_BASH_SETUP_PATH; | |
LUNCHY_DIR=$(dirname `gem which lunchy`)/../extras | |
if [ -f $LUNCHY_DIR/lunchy-completion.bash ]; then | |
. $LUNCHY_DIR/lunchy-completion.bash | |
fi | |
# heroku autocomplete setup | |
HEROKU_AC_ZSH_SETUP_PATH=$HOME/Library/Caches/heroku/autocomplete/zsh_setup && test -f $HEROKU_AC_ZSH_SETUP_PATH && source $HEROKU_AC_ZSH_SETUP_PATH; | |
alias godwe='cd ~/Projects/Dwell/code/' | |
eval "$(ssh-agent)" | |
# eval "$(rbenv init -)" | |
# alias rb='rbenv' | |
alias sob='source ~/.zshrc' | |
alias h='howdoi' | |
# alias python='python3' | |
# alias pip='pip3' | |
# The next line updates PATH for the Google Cloud SDK. | |
if [ -f "$HOME/Downloads/google-cloud-sdk/path.zsh.inc" ]; then . "$HOME/Downloads/google-cloud-sdk/path.zsh.inc"; fi | |
# The next line enables shell command completion for gcloud. | |
if [ -f "$HOME/Downloads/google-cloud-sdk/completion.zsh.inc" ]; then . "$HOME/Downloads/google-cloud-sdk/completion.zsh.inc"; fi | |
# added by travis gem | |
# [ -f $HOME/.travis/travis.sh ] && source $HOME/.travis/travis.sh | |
ssh-add ~/.ssh/git_rsa | |
ssh-add ~/.ssh/gitlab_rsa | |
ssh-add ~/.ssh/id_rsa | |
export PATH="$HOME/.cargo/bin:$PATH" | |
export PATH=$PATH:$HOME/.npm-global/bin:$PATH | |
alias vsPlugs='code --list-extensions | xargs -L 1 echo code --install-extension' | |
alias gotest='cd ~/Projects/Tests' | |
alias gofly='cd ~/Dropbox/Projects/FlyeLyfe/apps/' | |
alias gomir='cd ~/Instincts/Internal/Smokey-Rolls/code/miracle-drugs' | |
alias gobb='cd ~/Projects/Tests/crypto/blackbird' | |
alias ql='qlmanage' | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" | |
alias gocon='cd ~/Projects/Contra.com/code/contra-app/' | |
source $ZSH/oh-my-zsh.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment