From e39598624708dde70ab31c7fd3b6a3bd6d0e575e Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 18 Mar 2020 04:39:47 +0100 Subject: [PATCH] latest zshrc greatness --- zsh/zshrc | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index 6c9b123..3832d1d 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -3,7 +3,8 @@ source ~/.zplug/init.zsh zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme zplug "zsh-users/zsh-autosuggestions" - zplug "zsh-users/zsh-syntax-highlighting" + #zplug "zsh-users/zsh-syntax-highlighting" + zplug "zdharma/fast-syntax-highlighting" zplug "zsh-users/zsh-history-substring-search" zplug "plugins/git", from:oh-my-zsh zplug "plugins/gitignore", from:oh-my-zsh @@ -19,7 +20,8 @@ fi source ~/.zplug/repos/zsh-users/zsh-autosuggestions/zsh-autosuggestions.zsh - source ~/.zplug/repos/zsh-users/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + #source ~/.zplug/repos/zsh-users/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + source ~/.zplug/repos/zdharma/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh source ~/.zplug/repos/zsh-users/zsh-history-substring-search/zsh-history-substring-search.zsh source ~/.zplug/repos/robbyrussell/oh-my-zsh/plugins/git/git.plugin.zsh source ~/.zplug/repos/robbyrussell/oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh @@ -27,9 +29,9 @@ source ~/.zplug/repos/robbyrussell/oh-my-zsh/plugins/dnf/dnf.plugin.zsh ZSH_THEME="spaceship" - SPACESHIP_PROMPT_ADD_NEWLINE=true + SPACESHIP_PROMPT_ADD_NEWLINE=false SPACESHIP_PROMPT_SEPARATE_LINE=true - SPACESHIP_TIME_SHOW=true + SPACESHIP_TIME_SHOW=false SPACESHIP_TIME_COLOR=white SPACESHIP_DIR_PREFIX= @@ -114,11 +116,15 @@ # Add wisely, as too many plugins slow down shell startup. plugins=( safe-paste + docker + yarn ) source $ZSH/oh-my-zsh.sh - ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern) + ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor) + ZSH_AUTOSUGGEST_STRATEGY=(history) + ZSH_AUTOSUGGEST_USE_ASYNC= # map Del escape sequence to actual Del key in all (n,i) modes to resemble vim instead of vi bindkey -a '^[[3~' delete-char @@ -129,7 +135,7 @@ # User configuration # export MANPATH="/usr/local/man:$MANPATH" - export PATH="$PATH:$HOME/.local/bin:$HOME/utils/bin" + export PATH="$HOME/.local/bin:$HOME/utils/bin:$PATH" # You may need to manually set your language environment export LANG=en_GB.UTF-8