Krolyxon
Commit a362b34

Branches

Refs →

dotfiles-x11.configzsh.zshrc

27 lines · 887 B · Bourne Again Shell (bash)

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