diff options
author | Süleyman Fərəcli <suleyman@farajli.net> | 2025-06-20 17:22:54 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-20 17:22:54 +0400 |
commit | eb312b971b85c117e02799d72d6dfdcc15c478ed (patch) | |
tree | 210d516c35c370cb851c59c0b0d177128e109552 /config/zsh/zshrc | |
parent | 4d14ace3c5180ec0827408c1222cb35fe27cf484 (diff) | |
parent | f2ca88c01f88fe3234b196202cd86b19cd9b72bb (diff) |
Merge pull request #11 from sfarajli/dev
Dev
Diffstat (limited to 'config/zsh/zshrc')
-rwxr-xr-x | config/zsh/zshrc | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/config/zsh/zshrc b/config/zsh/zshrc index 892310a..4b50761 100755 --- a/config/zsh/zshrc +++ b/config/zsh/zshrc @@ -1,5 +1,3 @@ -# Suleyman's zsh interactive shell config at "https://git.farajli.net/slcf" - PROMPT="%B%F{red}%(?..%? )%B%F{blue}%n%b%f@%m %B%~ %% %b" # Git integration @@ -20,11 +18,11 @@ autoload -U compinit zstyle ':completion:*' menu select zmodload zsh/complist compinit -_comp_options+=(globdots) # Include hidden files. +_comp_options+=(globdots) # Include hidden files. # vi mode -bindkey -v # Vi mode. -export KEYTIMEOUT=1 # Set escape delay to 0.01 sec. +bindkey -v # Vi mode. +export KEYTIMEOUT=0 # Set escape delay to 0.01 sec. # Use vim keys in tab complete menu: bindkey -M menuselect 'h' vi-backward-char @@ -49,17 +47,16 @@ zle-line-init() { echo -ne "\e[5 q" } zle -N zle-line-init -echo -ne '\e[5 q' # Use beam shape cursor on startup. -preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt. - +echo -ne '\e[5 q' # Use beam shape cursor on startup. +preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt. # Options -setopt autocd # Automatically cd into typed directory. -stty stop undef # Disable ctrl-s to freeze terminal. -setopt interactive_comments -unsetopt nomatch -setopt INC_APPEND_HISTORY # Add commands to history when they are run. -setopt HIST_FIND_NO_DUPS # Don't show duplicate commands when backward searching. +setopt autocd # Automatically cd into typed directory. +stty stop undef # Disable ctrl-s to freeze terminal. +setopt interactive_comments # Write comments in interactive shell +unsetopt nomatch # Allow unmatched globs without error (leave pattern as-is) +setopt INC_APPEND_HISTORY # Add commands to history when they are run. +setopt HIST_FIND_NO_DUPS # Don't show duplicate commands when backward searching. # Custom keybinds bindkey '^R' history-incremental-search-backward |