|
| 1 | +source $HOME/.zsh_plugins |
| 2 | +source $HOME/.zsh_aliases |
| 3 | + |
| 4 | +# load zsh completions |
| 5 | +autoload -U compinit && compinit |
| 6 | + |
| 7 | +# dotfile management |
| 8 | +alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' |
| 9 | + |
| 10 | +# history configuration |
| 11 | +HISTSIZE=5000 |
| 12 | +HISTFILE=$HOME/.zsh_history |
| 13 | +SAVEHIST=5000 |
| 14 | +setopt APPEND_HISTORY SHARE_HISTORY INC_APPEND_HISTORY HIST_FIND_NO_DUPS |
| 15 | + |
| 16 | +# set dirs history and navigation |
| 17 | +setopt AUTO_CD PUSHD_IGNORE_DUPS |
| 18 | +zstyle :plugin:history-search-multi-word reset-prompt-protect 1 |
| 19 | + |
| 20 | +# terminal/editor configuration |
| 21 | +export VISUAL=vim |
| 22 | +export EDITOR="$VISUAL" |
| 23 | +bindkey "[3~" delete-char |
| 24 | +bindkey "^R" history-search-multi-word |
| 25 | +set -o vi |
| 26 | +bindkey -v |
| 27 | + |
| 28 | +# Spaceship prompt configuration |
| 29 | +SPACESHIP_TIME_SHOW=true |
| 30 | +SPACESHIP_PROMPT_ORDER=( |
| 31 | + time user dir host git |
| 32 | + package node xcode golang rust docker aws venv pyenv kubecontext terraform |
| 33 | + exec_time line_sep |
| 34 | + jobs exit_code char |
| 35 | +) |
| 36 | +SPACESHIP_RPROMPT_ORDER=(vi_mode) |
| 37 | +spaceship_vi_mode_enable |
| 38 | +SPACESHIP_VI_MODE_SHOW=true |
| 39 | +SPACESHIP_VI_MODE_NORMAL=Vim |
| 40 | +SPACESHIP_VI_MODE_INSERT= |
| 41 | + |
| 42 | +# navi shell widget |
| 43 | +source "$(navi widget zsh)" |
| 44 | + |
| 45 | +eval $(thefuck --alias) |
| 46 | + |
| 47 | +# TODO: |
| 48 | +# - missing a ton of aliases |
| 49 | + |
| 50 | +################### |
| 51 | +# Application-specific config. Move to new file? |
| 52 | +################### |
| 53 | + |
| 54 | +# tabtab source for serverless package |
| 55 | +# uninstall by removing these lines or running `tabtab uninstall serverless` |
| 56 | +[[ -f /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.zsh ]] && . /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.zsh |
| 57 | +# tabtab source for sls package |
| 58 | +# uninstall by removing these lines or running `tabtab uninstall sls` |
| 59 | +[[ -f /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.zsh ]] && . /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.zsh |
| 60 | +# tabtab source for slss package |
| 61 | +# uninstall by removing these lines or running `tabtab uninstall slss` |
| 62 | +[[ -f /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/slss.zsh ]] && . /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/slss.zsh |
| 63 | + |
| 64 | +export NVM_DIR="$HOME/.nvm" |
| 65 | +[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm |
| 66 | +[ -s "/usr/local/opt/nvm/etc/bash_completion" ] && . "/usr/local/opt/nvm/etc/bash_completion" # This loads nvm bash_completion |
0 commit comments