summaryrefslogtreecommitdiff
path: root/zsh/zshrc
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2022-06-16 15:19:16 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2022-06-16 15:19:16 -0500
commit66bff0b5ef46550866c959bb745a61363dc5331f (patch)
treeaccb0a1923bf9673d54bca84ee637ed536ae7b6a /zsh/zshrc
parentc878742ad78a014fef93c520abd1c1d846f2c0d9 (diff)
downloaddotconfig-66bff0b5ef46550866c959bb745a61363dc5331f.tar.xz
dotconfig-66bff0b5ef46550866c959bb745a61363dc5331f.zip
zplug commit
Diffstat (limited to 'zsh/zshrc')
-rwxr-xr-xzsh/zshrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 5200f3d..1cf9e59 100755
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -1,6 +1,7 @@
#!/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
# Colors! + Prompt
@@ -21,7 +22,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 2>/dev/null | shuf -n1)" 2>/dev/null
+# 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
-# Load zsh plugins; should be last
-for plugin in ${=ZPLUGINS}; do source "$plugin"; done
+zplugInitialize # Load zsh plugins using zplug; should be last