Fix up zshrc

This commit is contained in:
GRMrGecko 2024-05-16 00:02:22 -05:00
parent c7f6bbfddc
commit 3c00685568

10
.zshrc
View File

@ -3,7 +3,6 @@ compinit
HISTFILE="$HOME/.zsh_history" HISTFILE="$HOME/.zsh_history"
HISTSIZE=10000 HISTSIZE=10000
SAVEHIST=10000 SAVEHIST=10000
bindkey -e
export PATH="/usr/local/ubin:$HOME/bin:$HOME/go/bin:$HOME/.cargo/bin:$PATH" export PATH="/usr/local/ubin:$HOME/bin:$HOME/go/bin:$HOME/.cargo/bin:$PATH"
export EDITOR="vim" export EDITOR="vim"
@ -14,10 +13,17 @@ export VIDEO="mpv"
export OPENER="xdg-open" export OPENER="xdg-open"
export ZDOTDIR="$HOME/.config/zsh" export ZDOTDIR="$HOME/.config/zsh"
# Set emacs key binding.
bindkey -e
# Import functions.
source "$ZDOTDIR/functions" source "$ZDOTDIR/functions"
# Set custom key bindings.
zsh_add_config keybinds.zsh zsh_add_config keybinds.zsh
# Configure pure-prompt.
export PURE_PROMPT_SYMBOL="$" export PURE_PROMPT_SYMBOL="$"
if [ "$USER" = "root" ]; then if [ "$USER" = "root" ]; then
export PURE_PROMPT_SYMBOL="#" export PURE_PROMPT_SYMBOL="#"
@ -30,9 +36,11 @@ zstyle :prompt:pure:host color white
zstyle ':prompt:pure:prompt:*' color white zstyle ':prompt:pure:prompt:*' color white
prompt pure prompt pure
# Add extra plugins.
zsh_add_plugin zdharma-continuum/fast-syntax-highlighting zsh_add_plugin zdharma-continuum/fast-syntax-highlighting
ZSH_AUTOSUGGEST_STRATEGY=(history completion) ZSH_AUTOSUGGEST_STRATEGY=(history completion)
zsh_add_plugin zsh-users/zsh-autosuggestions zsh_add_plugin zsh-users/zsh-autosuggestions
# Show off the system.
fastfetch fastfetch