summaryrefslogtreecommitdiff
path: root/.config/zsh/.zshrc
diff options
context:
space:
mode:
authorDavid Luevano <55825613+luevano@users.noreply.github.com>2020-02-10 12:22:59 -0700
committerDavid Luevano <55825613+luevano@users.noreply.github.com>2020-02-10 12:22:59 -0700
commit5b7d5e11fa692578226da3307d69549554c11879 (patch)
treee51e602512288d7104753ef56b90186700800317 /.config/zsh/.zshrc
parent64c0c43440bd1246a6e28abaee96ff04e0d1a0bb (diff)
Add some more configs
Diffstat (limited to '.config/zsh/.zshrc')
-rw-r--r--.config/zsh/.zshrc35
1 files changed, 35 insertions, 0 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
new file mode 100644
index 0000000..12415dc
--- /dev/null
+++ b/.config/zsh/.zshrc
@@ -0,0 +1,35 @@
+#
+# $ZDOTDIR/.zshrc
+#
+
+# PS1 colors and style.
+autoload -U colors && colors
+PS1="%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$ "
+
+# Set LS_COLORS via dircolors.
+[[ -f ~/.config/dircolors ]] && eval "$(dircolors ~/.config/dircolors)"
+
+# Load aliases if existent.
+[[ -f ~/.config/aliasrc ]] && . ~/.config/aliasrc
+
+# History cache.
+HISTFILE=~/.cache/zsh/history
+HISTSIZE=10000
+SAVEHIST=10000
+setopt appendhistory autocd
+
+# Auto/tab complete.
+autoload -Uz compinit
+zstyle ':completion:*' menu select
+# Use the same colors as ls.
+[[ ! -z "$LS_COLORS" ]] && zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
+compinit
+# Include hidden files in autocomplete.
+_comp_options+=(globdots)
+
+# Prompt themes.
+# autoload -Uz promptinit
+# promptinit
+
+# Add syntax highlighting.
+. /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh