summaryrefslogtreecommitdiff
path: root/zsh/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zshrc')
-rwxr-xr-xzsh/zshrc30
1 files changed, 13 insertions, 17 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 8bef6af..474d24f 100755
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -1,8 +1,8 @@
#!/usr/bin/env zsh
-setopt +o NOMATCH # Non-existant wildcard matches won't produce an error
+setopt +o NOMATCH # Non-existant wildcard matches won't produce an error
-# Zsh scripts (load general scripts, then host specific scripts, then scripts prepended with !)
+# Zsh scripts (load general scripts, then host specific scripts, then scripts with ! prefix) (loaded later = higher priority)
for zscript in "$XDG_CONFIG_HOME/zsh/zscripts"{/[^\!]*.zsh,/hosts/*.$HOST.zsh,/!*.zsh}; do source "$zscript"; done 2>/dev/null
# Colors! + Prompt
@@ -10,24 +10,20 @@ autoload -U colors && colors
[ -z "$PS1OVERRIDE" ] && 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%(!.#.$) "
# Cd settings
-setopt AUTO_CD # `cd` is implied
-#setopt CDABLE_VARS # '~/' is implied for `cd` (doesn't work?)
+setopt AUTO_CD # `cd` is implied when path is entered
# History settings
HISTFILE="${ZHISTFILE:-$HOME/.zhistory}"
-HISTSIZE=500 # Max lines of history loaded into memory for each zsh session
-SAVEHIST=10000000 # Max lines of history saved to HISTFILE before overwriting
-setopt EXTENDED_HISTORY # Save superfluous info with command to reduce disk writes when using INC_APPEND_HISTORY or SHARE_HISTORY
-setopt HIST_IGNORE_DUPS # Successive duplicate entries ignored
-setopt HIST_IGNORE_SPACE # Entries with leading space ignored
-setopt HIST_REDUCE_BLANKS # Remove superfluous blank characters before saving
-setopt INC_APPEND_HISTORY # Create entries after each command, not after zsh exits
-setopt SHARE_HISTORY # Share history between zsh sessions
+HISTSIZE=500 # Max lines of history loaded into memory for each zsh session
+SAVEHIST=10000000 # Max lines of history saved to HISTFILE before overwriting
+setopt EXTENDED_HISTORY # Save superfluous info with command to reduce disk writes when using INC_APPEND_HISTORY or SHARE_HISTORY
+setopt HIST_IGNORE_DUPS # Successive duplicate entries ignored
+setopt HIST_IGNORE_SPACE # Entries with leading space aren't stored in histfile
+setopt HIST_REDUCE_BLANKS # Remove superfluous blank characters before saving
+setopt INC_APPEND_HISTORY # Create entries after each command, not after zsh exits
+setopt SHARE_HISTORY # Share history between zsh sessions
# Input/output settings
-setopt INTERACTIVE_COMMENTS # Comments won't be interpreted in an interactive zsh session
+setopt INTERACTIVE_COMMENTS # Comments won't be interpreted in an interactive shell
-# tmp thing
-[ $TTY = /dev/tty2 ] && "/home/timmy/.local/opt/shell-color-scripts/colorscripts/$(ls /home/timmy/.local/opt/shell-color-scripts/colorscripts 2>/dev/null | shuf -n1)" 2>/dev/null
-
-zplugInitialize # Load zsh plugins using zplug; should be last
+zplugInitialize # Load zsh plugins using zplug; goes last