Skip to content

Instantly share code, notes, and snippets.

@C-Sinclair
Created February 9, 2021 19:41
Show Gist options
  • Save C-Sinclair/0211d677f6ab492d37962cd09fc0a430 to your computer and use it in GitHub Desktop.
Save C-Sinclair/0211d677f6ab492d37962cd09fc0a430 to your computer and use it in GitHub Desktop.
My Zsh config
autoload -U colors && colors
setopt autocd # Automatically cd into typed directory.
stty stop undef # Disable ctrl-s to freeze terminal.
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/history
setopt SHARE_HISTORY
# Load aliases and shortcuts if existent.
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shortcutrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shortcutrc"
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/aliasrc"
# Basic auto/tab complete:
autoload -U compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
_comp_options+=(globdots) # Include hidden files.
# Edit line in vim with ctrl-e:
autoload edit-command-line; zle -N edit-command-line
bindkey '^e' edit-command-line
# Load syntax highlighting; should be last.
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null
# NVIM
export VISUAL=nvim
export EDITOR="$VISUAL"
# 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 BROWSER="brave-browser"
source $HOME/.cargo/env
source $HOME/.config/broot/launcher/bash/br
export PATH="$PATH:$HOME/bin:$HOME/bin/js:$HOME/bin/shell:/usr/local/go/bin"
source /usr/share/doc/fzf/examples/key-bindings.zsh
source /usr/share/doc/fzf/examples/completion.zsh
source $HOME/.config/zsh/zsh-z.plugin.zsh
eval "$(starship init zsh)"
export DENO_INSTALL="/home/conor/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment