From 6f04fb8da8674ea4a21436b1d1660a9271b9545e Mon Sep 17 00:00:00 2001 From: xenua Date: Sun, 10 Oct 2021 00:08:32 +0200 Subject: [PATCH] fix merge conflicts (again) --- runcoms/zpreztorc | 65 +++++++++++++++++++++++++---------------------- runcoms/zprofile | 12 +++------ runcoms/zshrc | 4 +++ 3 files changed, 42 insertions(+), 39 deletions(-) diff --git a/runcoms/zpreztorc b/runcoms/zpreztorc index ae68a89..b3e128d 100644 --- a/runcoms/zpreztorc +++ b/runcoms/zpreztorc @@ -12,6 +12,9 @@ # Set case-sensitivity for completion, history lookup, etc. # zstyle ':prezto:*:*' case-sensitive 'yes' +# Automatically rehash +zstyle ':completion:*' rehash true + # Color output (auto set to 'no' on dumb terminals). zstyle ':prezto:*:*' color 'yes' @@ -38,15 +41,17 @@ zstyle ':prezto:load' pmodule \ 'spectrum' \ 'utility' \ 'completion' \ + 'syntax-highlighting' \ 'history-substring-search' \ - 'prompt' + 'prompt' \ + 'git' # # Autosuggestions # # Set the query found color. -# zstyle ':prezto:module:autosuggestions:color' found '' +zstyle ':prezto:module:autosuggestions:color' found '' # # Completions @@ -64,10 +69,10 @@ zstyle ':prezto:load' pmodule \ zstyle ':prezto:module:editor' key-bindings 'emacs' # Auto convert .... to ../.. -# zstyle ':prezto:module:editor' dot-expansion 'yes' +zstyle ':prezto:module:editor' dot-expansion 'yes' # Allow the zsh prompt context to be shown. -#zstyle ':prezto:module:editor' ps-context 'yes' +zstyle ':prezto:module:editor' ps-context 'yes' # # Git @@ -101,13 +106,13 @@ zstyle ':prezto:module:editor' key-bindings 'emacs' # # Set the query found color. -# zstyle ':prezto:module:history-substring-search:color' found '' +zstyle ':prezto:module:history-substring-search:color' found '' # Set the query not found color. -# zstyle ':prezto:module:history-substring-search:color' not-found '' +zstyle ':prezto:module:history-substring-search:color' not-found '' # Set the search globbing flags. -# zstyle ':prezto:module:history-substring-search' globbing-flags '' +zstyle ':prezto:module:history-substring-search' globbing-flags '' # # macOS @@ -130,23 +135,23 @@ zstyle ':prezto:module:editor' key-bindings 'emacs' # 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 'sorin' +zstyle ':prezto:module:prompt' theme 'skwp' # Set the working directory prompt display length. # By default, it is set to 'short'. Set it to 'long' (without '~' expansion) # for longer or 'full' (with '~' expansion) for even longer prompt display. -# zstyle ':prezto:module:prompt' pwd-length 'short' +zstyle ':prezto:module:prompt' pwd-length 'long' # Set the prompt to display the return code along with an indicator for non-zero # return codes. This is not supported by all prompts. -# zstyle ':prezto:module:prompt' show-return-val 'yes' +zstyle ':prezto:module:prompt' show-return-val 'yes' # # Python # # Auto switch the Python virtualenv on directory change. -# zstyle ':prezto:module:python:virtualenv' auto-switch 'yes' +zstyle ':prezto:module:python:virtualenv' auto-switch 'yes' # Automatically initialize virtualenvwrapper if pre-requisites are met. # zstyle ':prezto:module:python:virtualenv' initialize 'yes' @@ -181,36 +186,36 @@ zstyle ':prezto:module:prompt' theme 'sorin' # Set syntax highlighters. # By default, only the main highlighter is enabled. -# zstyle ':prezto:module:syntax-highlighting' highlighters \ -# 'main' \ -# 'brackets' \ -# 'pattern' \ -# 'line' \ -# 'cursor' \ -# 'root' -# + 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' -# + zstyle ':prezto:module:syntax-highlighting' styles \ + 'builtin' 'fg=blue' \ + 'command' 'fg=green' \ + 'function' 'fg=yellow' + # Set syntax pattern styles. -# zstyle ':prezto:module:syntax-highlighting' pattern \ -# 'rm*-rf*' 'fg=white,bold,bg=red' +zstyle ':prezto:module:syntax-highlighting' pattern \ + 'rm*-rf*' 'fg=white,bold,bg=red' # # Terminal # # Auto set the tab and window titles. -# zstyle ':prezto:module:terminal' auto-title 'yes' +zstyle ':prezto:module:terminal' auto-title 'yes' # Set the window title format. -# zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s' +zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s' # Set the tab title format. -# zstyle ':prezto:module:terminal:tab-title' format '%m: %s' +zstyle ':prezto:module:terminal:tab-title' format '%m: %s' # Set the terminal multiplexer title format. # zstyle ':prezto:module:terminal:multiplexer-title' format '%s' @@ -238,4 +243,4 @@ zstyle ':prezto:module:prompt' theme 'sorin' # Enabled safe options. This aliases cp, ln, mv and rm so that they prompt # before deleting or overwriting files. Set to 'no' to disable this safer # behavior. -# zstyle ':prezto:module:utility' safe-ops 'yes' +zstyle ':prezto:module:utility' safe-ops 'no' diff --git a/runcoms/zprofile b/runcoms/zprofile index d2acd31..4629cbe 100644 --- a/runcoms/zprofile +++ b/runcoms/zprofile @@ -17,15 +17,9 @@ fi # Editors # -if [[ -z "$EDITOR" ]]; then - export EDITOR='nano' -fi -if [[ -z "$VISUAL" ]]; then - export VISUAL='nano' -fi -if [[ -z "$PAGER" ]]; then - export PAGER='less' -fi +export EDITOR='nvim' +export VISUAL='nvim' +export PAGER='less' # # Language diff --git a/runcoms/zshrc b/runcoms/zshrc index 039b882..dbe7a68 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -11,3 +11,7 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then fi # Customize to your needs... + +function mkcd() { mkdir $1 && cd $1 }; + +alias vim=nvim