Skip to content

Instantly share code, notes, and snippets.

@josephjoice
Last active September 8, 2021 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephjoice/4c641f94273033eb845b71192f6d7ef5 to your computer and use it in GitHub Desktop.
Save josephjoice/4c641f94273033eb845b71192f6d7ef5 to your computer and use it in GitHub Desktop.
Prezto config
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# General
#
# Set case-sensitivity for completion, history lookup, etc.
zstyle ':prezto:*:*' case-sensitive 'yes'
# Color output (auto set to 'no' on dumb terminals).
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
zstyle ':prezto:*:*' color 'yes'
# Set the Zsh modules to load (man zshmodules).
zstyle ':prezto:load' zmodule 'attr' 'stat'
# Set the Zsh functions to load (man zshcontrib).
zstyle ':prezto:load' zfunction 'zargs' 'zmv'
# Set the Prezto modules to load (browse modules).
# The order matters.
zstyle ':prezto:load' pmodule \
'git' \
'tmux' \
'environment' \
'terminal' \
'editor' \
'history' \
'history-substring-search' \
'syntax-highlighting' \
'prompt' \
'directory' \
'utility' \
'directory' \
'spectrum' \
'utility' \
'completion' \
'prompt' \
#
# Autosuggestions
#
# Set the query found color.
zstyle ':prezto:module:autosuggestions:color' found ''
#
# Editor
#
# Set the key mapping style to 'emacs' or 'vi'.
zstyle ':prezto:module:editor' key-bindings 'emacs'
# Auto convert .... to ../..
zstyle ':prezto:module:editor' dot-expansion 'yes'
#
# Git
#
# Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'.
zstyle ':prezto:module:git:status:ignore' submodules 'all'
#
# GNU Utility
#
# Set the command prefix on non-GNU systems.
zstyle ':prezto:module:gnu-utility' prefix 'g'
#
# History Substring Search
#
# Set the query found color.
zstyle ':prezto:module:history-substring-search:color' found ''
# Set the query not found color.
zstyle ':prezto:module:history-substring-search:color' not-found ''
# Set the search globbing flags.
zstyle ':prezto:module:history-substring-search' globbing-flags ''
#
# Pacman
#
# Set the Pacman frontend.
zstyle ':prezto:module:pacman' frontend 'yaourt'
#
# Prompt
#
# Set the prompt theme to load.
# Setting it to 'random' loads a random theme.
# Auto set to 'off' on dumb terminals.
zstyle ':prezto:module:prompt' theme 'kylewest'
#
#zstyle ':prezto:module:tmux:auto-start' local 'yes'
#
# Ruby
#
#
# Screen
#
#
# SSH
#
# Set the SSH identities to load into the agent.
zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github'
#
# Syntax Highlighting
#
# Set syntax highlighters.
# By default, only the main highlighter is enabled.
zstyle ':prezto:module:syntax-highlighting' highlighters \
'main' \
'brackets' \
'pattern' \
'line' \
'cursor' \
'root'
#
# Set syntax highlighting styles.
zstyle ':prezto:module:syntax-highlighting' styles \
'builtin' 'bg=blue' \
'command' 'bg=blue' \
'function' 'bg=blue'
#
# Terminal
#
# Auto set the tab and window titles.
zstyle ':prezto:module:terminal' auto-title 'yes'
# Set the window title format.
zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'
# Set the tab title format.
zstyle ':prezto:module:terminal:tab-title' format '%m: %s'
#
# Tmux
#
# Auto start a session when Zsh is launched in a local terminal.
#zstyle ':prezto:module:tmux:session' name 'session'
#zstyle ':prezto:module:tmux:auto-start' local 'yes'
# Auto start a session when Zsh is launched in a SSH connection.
# zstyle ':prezto:module:tmux:auto-start' remote 'yes'
# Integrate with iTerm2.
zstyle ':prezto:module:tmux:iterm' integrate 'yes'
#killall gpg-agent
export GPG_TTY=$( tty )
export CAS_ENV=ci
PATH=$PATH:"/usr/local/bin"
export PATH=/usr/local/Cellar/vim/8.0.0032/bin/:$PATH
export PATH=$PATH:/usr/local/opt/python/libexec/bin/python
HISTSIZE=9999999 # The maximum number of events to save in the internal history.
SAVEHIST=9999999
export VISUAL=vim
export EDITOR="$VISUAL"
. /usr/local/lib/python3.9/site-packages/powerline/bindings/zsh/powerline.zsh
alias pg='ping google.com'
alias m='man'
stty -ixon
alias c='clear'
PATH=~/overrides:$PATH
#PATH=$PATH:~/tmux-cluster
#PATH=$PATH:/usr/local/Cellar/python/3.7.3/bin:/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/bin
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion" ] && . "/usr/local/opt/nvm/etc/bash_completion" # This loads nvm bash_completion
eval "$(pyenv init -)"
export GPG_TTY=$(tty)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment