From 6d35685e3339771082ccdc4374005b9f683ce75e Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 31 May 2023 19:32:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BE=D1=81=D1=81=D1=82=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=20=D1=84=D0=B0=D0=B9=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 15-options.zsh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 15-options.zsh diff --git a/15-options.zsh b/15-options.zsh new file mode 100644 index 0000000..5afa31b --- /dev/null +++ b/15-options.zsh @@ -0,0 +1,30 @@ +# shellcheck shell=bash +# vim: ft=sh + +setopt AUTO_PUSHD # Push the current directory visited on the stack. +setopt PUSHD_IGNORE_DUPS # Do not store duplicates in the stack. +setopt PUSHD_SILENT # Do not print the directory stack after pushd or popd. + +autoload -Uz allopt zed zmv zcalc colors is-at-least +colors + +zmodload zsh/terminfo + +autoload -Uz edit-command-line +zle -N edit-command-line + +autoload -Uz select-word-style +select-word-style shell + +if [ -z ${DISABLE_MAGIC_FUNCTIONS+set} ]; then + if is-at-least 5.1; then + autoload -Uz bracketed-paste-magic + zle -N bracketed-paste bracketed-paste-magic + fi + autoload -Uz url-quote-magic + zle -N self-insert url-quote-magic +fi + +# Подсветка вывода основных команд +if [[ -r /etc/grc.zsh ]]; then source /etc/grc.zsh; fi +