| 1 | autoload -U colors && colors # Load colors |
| 2 | PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " |
| 3 | setopt autocd # Automatically cd into typed directory. |
| 4 | stty stop undef # Disable ctrl-s to freeze terminal. |
| 5 | |
| 6 | # History in cache directory: |
| 7 | HISTSIZE=1000 |
| 8 | SAVEHIST=1000 |
| 9 | HISTFILE=~/.cache/history |
| 10 | |
| 11 | source "$XDG_CONFIG_HOME/shell/aliasrc" |
| 12 | |
| 13 | # Basic auto/tab complete: |
| 14 | autoload -U compinit |
| 15 | zstyle ':completion:*' menu select |
| 16 | zmodload zsh/complist |
| 17 | compinit |
| 18 | _comp_options+=(globdots) # Include hidden files. |
| 19 | |
| 20 | # Enable searching through history |
| 21 | bindkey '^R' history-incremental-pattern-search-backward |
| 22 | |
| 23 | cowsay "$(shuf -n 1 ~/.local/share/vocab/words.txt)" |
| 24 | |
| 25 | #should be last. |
| 26 | source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh |
| 27 | source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh |