From 06b0c7eb739fd430aacbb46f183cea4aaf17300a Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sun, 17 Apr 2022 10:46:33 -0500 Subject: small changes to zsh and st configsa --- zsh/zshrc | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'zsh/zshrc') diff --git a/zsh/zshrc b/zsh/zshrc index 648ea3c..8272e56 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,25 +1,15 @@ #!/usr/bin/env zsh # Zsh scripts -zscripts="$XDG_CONFIG_HOME/zsh/zscripts" -source $zscripts/aliasrc.zsh # General aliases -source $zscripts/keybindrc.zsh # Zsh keybindings -source $zscripts/lfub.zsh # lf + ueberzug configuration -source $zscripts/vicursor.zsh # Change cursor for different vi modes -# Host specific scripts -for zscript in $zscripts/*.$HOST.zsh; do - source $zscript -done +for zscript in "$XDG_CONFIG_HOME/zsh/zscripts"{/[^\!]*.zsh,/hosts/*.$HOST.zsh,/!*.zsh}; do source "$zscript"; done # Colors! + Prompt autoload -U colors && colors PS1="%B%F{${colbr:-red}}[%F{${colname:-yellow}}%n%F{${colat:-green}}@%F{${colhost:-blue}}%m %F{${coldir:-magenta}}%U%~%u%F{${colbr:-red}}]%f%b%(!.#.$) " # History settings -HISTDIR="$XDG_DATA_HOME/zsh/" -mkdir -p "$HISTDIR" -HISTFILE="$HISTDIR/zhistory" -HISTSIZE=200 # Max lines of history loaded into memory +HISTFILE="$ZDATADIR/zhistory" +HISTSIZE=500 # Max lines of history loaded into memory SAVEHIST=10000000 # Max lines of history saved to the histfile setopt INC_APPEND_HISTORY # Create entries after each command, not after zsh exits setopt SHARE_HISTORY # Share history between zsh sessions @@ -31,7 +21,7 @@ setopt EXTENDED_HISTORY # Save superfluous info with command to reduce disk wri # Other settings setopt autocd # 'cd' is implied +"/home/timmy/.local/opt/shell-color-scripts/colorscripts/$(ls /home/timmy/.local/opt/shell-color-scripts/colorscripts | shuf -n1)" + # Load zsh plugins; should be last -for plugin in ${=ZPLUGINS}; do - source $plugin -done +for plugin in ${=ZPLUGINS}; do source "$plugin"; done -- cgit v1.2.3