diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2022-07-07 15:55:41 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2022-07-07 15:55:41 -0500 |
commit | 4af49ed67fbf358674d45fb8af3c4c3efaf90f58 (patch) | |
tree | f7619b516c34be16aaae9bb8ecf43d2504ceca31 /zsh/zshrc | |
parent | 66bff0b5ef46550866c959bb745a61363dc5331f (diff) | |
download | dotconfig-4af49ed67fbf358674d45fb8af3c4c3efaf90f58.tar.xz dotconfig-4af49ed67fbf358674d45fb8af3c4c3efaf90f58.zip |
tons of changes from when website was down
Diffstat (limited to 'zsh/zshrc')
-rwxr-xr-x | zsh/zshrc | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -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 |