diff options
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 |