diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2022-04-17 10:46:33 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2022-04-17 10:46:33 -0500 |
commit | 06b0c7eb739fd430aacbb46f183cea4aaf17300a (patch) | |
tree | b87398a7ed71ed22d4c43c42f274fbff12c1d578 /zsh/zshrc | |
parent | aff2302d113a71aee647ab71336e8d68bb844653 (diff) | |
download | dotconfig-06b0c7eb739fd430aacbb46f183cea4aaf17300a.tar.xz dotconfig-06b0c7eb739fd430aacbb46f183cea4aaf17300a.zip |
small changes to zsh and st configsa
Diffstat (limited to 'zsh/zshrc')
-rwxr-xr-x | zsh/zshrc | 22 |
1 files changed, 6 insertions, 16 deletions
@@ -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 |