Adds ubuntu 24.04 .zshrc updates.
This commit is contained in:
35
.zshrc
35
.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'
|
||||
|
||||
Reference in New Issue
Block a user