diff options
| author | krolyxon <krolyxon@tutanota.com> | 2022-06-01 22:55:52 +0530 |
|---|---|---|
| committer | krolyxon <krolyxon@tutanota.com> | 2022-06-01 22:55:52 +0530 |
| commit | 723220028038a3c6e155259e28d07e867e2d45c9 (patch) | |
| tree | f07e13aaf23e820c6da71ec02466e5831502b0e2 /.config/zsh/.zshrc | |
first commit
Diffstat (limited to '.config/zsh/.zshrc')
| -rw-r--r-- | .config/zsh/.zshrc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc new file mode 100644 index 0000000..016aae1 --- /dev/null +++ b/.config/zsh/.zshrc @@ -0,0 +1,27 @@ +autoload -U colors && colors # Load colors +PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " +setopt autocd # Automatically cd into typed directory. +stty stop undef # Disable ctrl-s to freeze terminal. + +# History in cache directory: +HISTSIZE=1000 +SAVEHIST=1000 +HISTFILE=~/.cache/history + +source "$XDG_CONFIG_HOME/shell/aliasrc" + +# Basic auto/tab complete: +autoload -U compinit +zstyle ':completion:*' menu select +zmodload zsh/complist +compinit +_comp_options+=(globdots) # Include hidden files. + +# Enable searching through history +bindkey '^R' history-incremental-pattern-search-backward + +cowsay "$(shuf -n 1 ~/.local/share/vocab/words.txt)" + +#should be last. +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh |
