From 723220028038a3c6e155259e28d07e867e2d45c9 Mon Sep 17 00:00:00 2001 From: krolyxon Date: Wed, 1 Jun 2022 22:55:52 +0530 Subject: first commit --- .config/zsh/.zshrc | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .config/zsh/.zshrc (limited to '.config/zsh') 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 -- cgit v1.2.3