Created
September 10, 2020 13:06
-
-
Save NoelJacob/200d3a18a339f97f7eb6a0946f850d83 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
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
# Start configuration added by Zim install {{{ | |
# | |
# User configuration sourced by interactive shells | |
# | |
# ----------------- | |
# Zsh configuration | |
# ----------------- | |
# | |
# History | |
# | |
# Remove older command from the history if a duplicate is to be added. | |
setopt HIST_IGNORE_ALL_DUPS | |
# | |
# Input/output | |
# | |
# Set editor default keymap to emacs (`-e`) or vi (`-v`) | |
# Prompt for spelling correction of commands. | |
#setopt CORRECT | |
# Customize spelling correction prompt. | |
#SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? ' | |
# Remove path separator from WORDCHARS. | |
WORDCHARS=${WORDCHARS//[\/]} | |
# -------------------- | |
# Module configuration | |
# -------------------- | |
# | |
# completion | |
# | |
# Set a custom path for the completion dump file. | |
# If none is provided, the default ${ZDOTDIR:-${HOME}}/.zcompdump is used. | |
#zstyle ':zim:completion' dumpfile "${ZDOTDIR:-${HOME}}/.zcompdump-${ZSH_VERSION}" | |
# | |
# git | |
# | |
# Set a custom prefix for the generated aliases. The default prefix is 'G'. | |
#zstyle ':zim:git' aliases-prefix 'g' | |
# | |
# input | |
# | |
# Append `../` to your input for each `.` you type after an initial `..` | |
#zstyle ':zim:input' double-dot-expand yes | |
# | |
# termtitle | |
# | |
# Set a custom terminal title format using prompt expansion escape sequences. | |
# See http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Simple-Prompt-Escapes | |
# If none is provided, the default '%n@%m: %~' is used. | |
#zstyle ':zim:termtitle' format '%1~' | |
# | |
# zsh-autosuggestions | |
# | |
# Customize the style that the suggestions are shown with. | |
# See https://github.com/zsh-users/zsh-autosuggestions/blob/master/README.md#suggestion-highlight-style | |
#ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=10' | |
# | |
# zsh-syntax-highlighting | |
# | |
# Set what highlighters will be used. | |
# See https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters.md | |
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets) | |
# Customize the main highlighter styles. | |
# See https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md#how-to-tweak-it | |
#typeset -A ZSH_HIGHLIGHT_STYLES | |
#ZSH_HIGHLIGHT_STYLES[comment]='fg=10' | |
# ------------------ | |
# Initialize modules | |
# ------------------ | |
if [[ ${ZIM_HOME}/init.zsh -ot ${ZDOTDIR:-${HOME}}/.zimrc ]]; then | |
# Update static initialization script if it's outdated, before sourcing it | |
source ${ZIM_HOME}/zimfw.zsh init -q | |
fi | |
source ${ZIM_HOME}/init.zsh | |
# ------------------------------ | |
# Post-init module configuration | |
# ------------------------------ | |
# | |
# zsh-history-substring-search | |
# | |
# Bind ^[[A/^[[B manually so up/down works both before and after zle-line-init | |
bindkey '^[[A' history-substring-search-up | |
bindkey '^[[B' history-substring-search-down | |
# Bind up and down keys | |
zmodload -F zsh/terminfo +p:terminfo | |
if [[ -n ${terminfo[kcuu1]} && -n ${terminfo[kcud1]} ]]; then | |
bindkey ${terminfo[kcuu1]} history-substring-search-up | |
bindkey ${terminfo[kcud1]} history-substring-search-down | |
fi | |
bindkey '^P' history-substring-search-up | |
bindkey '^N' history-substring-search-down | |
bindkey -M vicmd 'k' history-substring-search-up | |
bindkey -M vicmd 'j' history-substring-search-down | |
# }}} End configuration added by Zim install | |
# Spaceship Prompt: | |
SPACESHIP_PROMPT_ORDER=(char) | |
SPACESHIP_RPROMPT_ORDER=( | |
dir # Current directory section | |
host # Hostname section | |
git_branch # Git section (git_branch + git_status) | |
package # Package version | |
node # Node.js section | |
ruby # Ruby section | |
elixir # Elixir section | |
swift # Swift section | |
golang # Go section | |
rust # Rust section | |
haskell # Haskell Stack section | |
julia # Julia section | |
venv # virtualenv section | |
conda # conda virtualenv section | |
pyenv # Pyenv section | |
dotnet # .NET section | |
ember # Ember.js section | |
kubectl # Kubectl context section | |
terraform # Terraform workspace section | |
exec_time # Execution time | |
line_sep # Line break | |
jobs # Background jobs indicator | |
) | |
SPACESHIP_CHAR_SYMBOL_ROOT="▲ " | |
SPACESHIP_PROMPT_ADD_NEWLINE=true | |
SPACESHIP_CHAR_COLOR_SUCCESS=yellow | |
SPACESHIP_CHAR_COLOR_SECONDARY=green | |
SPACESHIP_PROMPT_SEPARATE_LINE=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment