From eb75fcfa3f5885c447cbd3b0084ae7cabf9bae47 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 15 Mar 2023 15:09:51 +0000 Subject: [PATCH 1/2] home: zsh: enable slash squeezing --- home/zsh/completion-styles.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home/zsh/completion-styles.zsh b/home/zsh/completion-styles.zsh index a0181a5..156bc2c 100644 --- a/home/zsh/completion-styles.zsh +++ b/home/zsh/completion-styles.zsh @@ -8,6 +8,8 @@ zstyle ':completion:*' menu select zstyle ':completion:*' group-name '' # Keep directories and files separated zstyle ':completion:*' list-dirs-first true +# Expand '//' to '/' +zstyle ':completion:*' squeeze-slashes true # Add colors to processes for kill completion zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' From ca047bfe97e45be02e8e109e1d2d3207e6829871 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 15 Mar 2023 15:11:12 +0000 Subject: [PATCH 2/2] home: zsh: use more readable option names Since they ignore underscores, this is more readable. --- home/zsh/options.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/home/zsh/options.zsh b/home/zsh/options.zsh index 98aaa6b..82047ff 100644 --- a/home/zsh/options.zsh +++ b/home/zsh/options.zsh @@ -1,13 +1,13 @@ # Show an error when a globbing expansion doesn't find any match setopt nomatch # List on ambiguous completion and Insert first match immediately -setopt autolist menucomplete +setopt auto_list menu_complete # Use pushd when cd-ing around -setopt autopushd pushdminus pushdsilent +setopt auto_pushd pushd_minus pushd_silent # Use single quotes in string without the weird escape tricks -setopt rcquotes +setopt rc_quotes # Single word commands can resume an existing job -setopt autoresume +setopt auto_resume # Show history expansion before running a command setopt hist_verify # Append commands to history as they are exectuted @@ -15,4 +15,4 @@ setopt inc_append_history_time # Remove useless whitespace from commands setopt hist_reduce_blanks # Those options aren't wanted -unsetopt beep extendedglob notify +unsetopt beep extended_glob notify