From 3a09b4a05ebb9669a81dc24e3f07ddcd0609a473 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Sat, 17 Jul 2021 06:59:35 +0000
Subject: [PATCH] Added some more subreddits and words

---
 zsh/.zshrc |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/zsh/.zshrc b/zsh/.zshrc
index 9ddb678..2c16fc9 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -1,6 +1,6 @@
 # Enable colors and change prompt
 autoload -U colors && colors	# Load colors
-PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%1~%{$fg[red]%}]%{$reset_color%}$%b "
+PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%1~%{$fg[red]%}]%(?:%{$fg[white]%}$:%{$fs_bold[red]%}<%?>$)%{$reset_color%}%b "
 
 # History files
 HISTFILE=~/.zsh_history
@@ -8,13 +8,13 @@
 SAVEHIST=10000
 
 # ZSH options
-setopt autocd extendedglob # Automatically cd without cd and expand globs
+setopt autocd extendedglob correct_all # Automatically cd without cd and expand globs
 unsetopt beep notify # Turn off terminal beeps
 bindkey -e #Emacs mode
 
-# common aliases
+# common shell options
 source ~/.commonshell
-source /usr/share/doc/pkgfile/command-not-found.zsh
+[ -f /usr/share/doc/pkgfile/command-not-found.zsh ] && source /usr/share/doc/pkgfile/command-not-found.zsh
 
 # Make the delete key work normally
 bindkey '^[[3~' delete-char
@@ -43,9 +43,10 @@
 compinit
 
 # Syntax highlighing
-if [[ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then
-	source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
-fi
+[ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ] && source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+
+# Auto-suggestions
+[ -f /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ] && source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
 
 # Git prompt
 autoload -Uz vcs_info

--
Gitblit v1.9.3