From 967f7d8cfa67caddd4926ae19228f32cffed3f03 Mon Sep 17 00:00:00 2001 From: Tom Hicks Date: Tue, 21 Jan 2025 14:19:46 -0800 Subject: [PATCH] Adds ubuntu 24.04 .zshrc updates. --- .zshrc | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/.zshrc b/.zshrc index 9b30503..a2e73b3 100644 --- a/.zshrc +++ b/.zshrc @@ -1,20 +1,4 @@ # Consider moving these to a script in .rc.d if they don't need to be before the other scripts in there. -# If Apple Silicon Homebrew is installed activate it. -if [ -x "/usr/local/homebrew/bin/brew" ]; then - eval "$(/usr/local/homebrew/bin/brew shellenv)" - # If x86_64 Homebrew is installed alias it to brew86. - if [ -x "/opt/homebrew/bin/brew" ]; then - alias brew86='arch -x86_64 /usr/local/homebrew/bin/brew' - fi -fi -# If x86_64 Homebrew is installed activate it. -if [ -x "/opt/homebrew/bin/brew" ]; then - eval "$(/opt/homebrew/bin/brew shellenv)" - # If Apple Silicon Homebrew is installed alias it to brewarm. - if [ -x "/usr/local/homebrew/bin/brew" ]; then - alias brewarm='arch -arm64 /opt/homebrew/bin/brew' - fi -fi # Source all scripts in ~/.rc.d for f in ~/.rc.d/*.sh; do @@ -38,8 +22,27 @@ fpath=( ~/.zsh_functions "${fpath[@]}" ) setopt HIST_IGNORE_SPACE setopt HIST_IGNORE_DUPS setopt INC_APPEND_HISTORY +setopt histignorealldups sharehistory HISTSIZE=1000 SAVEHIST=10000 # TODO: Look for an equivalent for `shopt -s checkwinsize` # I don't even remember what it does, but I think it's bash specific. + +# zstyle ':completion:*' auto-description 'specify: %d' +# zstyle ':completion:*' completer _expand _complete _correct _approximate +# zstyle ':completion:*' format 'Completing %d' +# zstyle ':completion:*' group-name '' +# zstyle ':completion:*' menu select=2 +# eval "$(dircolors -b)" +# zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} +# zstyle ':completion:*' list-colors '' +# zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s +# zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*' +# zstyle ':completion:*' menu select=long +# zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s +# zstyle ':completion:*' use-compctl false +# zstyle ':completion:*' verbose true + +# zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' +# zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'