From 4af49ed67fbf358674d45fb8af3c4c3efaf90f58 Mon Sep 17 00:00:00 2001
From: Timmy Keller <tjk@tjkeller.xyz>
Date: Thu, 7 Jul 2022 15:55:41 -0500
Subject: tons of changes from when website was down

---
 zsh/zshrc | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

(limited to 'zsh/zshrc')

diff --git a/zsh/zshrc b/zsh/zshrc
index 1cf9e59..bef8f9c 100755
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -1,26 +1,31 @@
 #!/usr/bin/env zsh
 
 # Zsh scripts
-unsetopt nomatch # Disable error message when no files can be found
-for zscript in "$XDG_CONFIG_HOME/zsh/zscripts"{/[^\!]*.zsh,/hosts/*.$HOST.zsh,/!*.zsh}; do source "$zscript"; done
+for zscript in "$XDG_CONFIG_HOME/zsh/zscripts"{/[^\!]*.zsh,/hosts/*.$HOST.zsh,/!*.zsh}; do source "$zscript"; done 2>/dev/null
 
 # 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%(!.#.$) "
 
+# Cd settings
+setopt AUTO_CD			# `cd` is implied
+#setopt CDABLE_VARS		# '~/' is implied for `cd` (doesn't work?)
+
 # History settings
-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
-setopt HIST_REDUCE_BLANKS
+setopt EXTENDED_HISTORY		# Save superfluous info with command to reduce disk writes
 setopt HIST_IGNORE_DUPS		# Successive duplicate entries ignored
 setopt HIST_IGNORE_SPACE	# Entries with leading space ignored
-setopt EXTENDED_HISTORY		# Save superfluous info with command to reduce disk writes
+setopt HIST_REDUCE_BLANKS
+setopt INC_APPEND_HISTORY	# Create entries after each command, not after zsh exits
+setopt SHARE_HISTORY		# Share history between zsh sessions
+
+# Zsh completion settings
+setopt MENU_COMPLETE		# Insert first option immediately in completion menu instead of just showing menu
 
-# Other settings
-setopt autocd			# 'cd' is implied
+# Input/output settings
+setopt INTERACTIVE_COMMENTS	# Comments work as expected in 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
-- 
cgit v1.2.3