2022-07-29 20:51:50 -05:00
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
2024-05-15 23:48:45 -05:00
|
|
|
HISTFILE="$HOME/.zsh_history"
|
2023-10-09 16:13:17 -05:00
|
|
|
HISTSIZE=10000
|
|
|
|
SAVEHIST=10000
|
2022-07-29 20:51:50 -05:00
|
|
|
|
2024-05-15 23:48:45 -05:00
|
|
|
export PATH="/usr/local/ubin:$HOME/bin:$HOME/go/bin:$HOME/.cargo/bin:$PATH"
|
2023-10-09 16:13:17 -05:00
|
|
|
export EDITOR="vim"
|
2024-05-15 23:48:45 -05:00
|
|
|
export TERMINAL="konsole"
|
|
|
|
export TERM="konsole"
|
|
|
|
export BROWSER="firefox"
|
|
|
|
export VIDEO="mpv"
|
|
|
|
export OPENER="xdg-open"
|
2022-07-29 20:51:50 -05:00
|
|
|
|
2024-05-15 23:48:45 -05:00
|
|
|
export ZDOTDIR="$HOME/.config/zsh"
|
2024-05-16 00:02:22 -05:00
|
|
|
|
|
|
|
# Set emacs key binding.
|
|
|
|
bindkey -e
|
|
|
|
|
|
|
|
# Import functions.
|
2024-05-15 23:48:45 -05:00
|
|
|
source "$ZDOTDIR/functions"
|
2022-07-29 20:51:50 -05:00
|
|
|
|
2024-05-16 00:02:22 -05:00
|
|
|
# Set custom key bindings.
|
2022-07-29 20:51:50 -05:00
|
|
|
zsh_add_config keybinds.zsh
|
|
|
|
|
2024-05-16 00:02:22 -05:00
|
|
|
# Configure pure-prompt.
|
2024-05-15 23:48:45 -05:00
|
|
|
export PURE_PROMPT_SYMBOL="$"
|
2022-07-31 22:59:10 -05:00
|
|
|
if [ "$USER" = "root" ]; then
|
2024-05-15 23:48:45 -05:00
|
|
|
export PURE_PROMPT_SYMBOL="#"
|
2022-07-31 22:59:10 -05:00
|
|
|
fi
|
2024-05-15 23:48:45 -05:00
|
|
|
export PROMPT_PURE_SSH_CONNECTION=YES
|
2022-08-16 20:40:55 -05:00
|
|
|
zsh_fpath_plugin sindresorhus/pure
|
2022-07-29 20:51:50 -05:00
|
|
|
autoload -U promptinit; promptinit
|
|
|
|
zstyle :prompt:pure:user color cyan
|
|
|
|
zstyle :prompt:pure:host color white
|
|
|
|
zstyle ':prompt:pure:prompt:*' color white
|
|
|
|
prompt pure
|
|
|
|
|
2024-05-16 00:02:22 -05:00
|
|
|
# Add extra plugins.
|
2024-05-15 23:48:45 -05:00
|
|
|
zsh_add_plugin zdharma-continuum/fast-syntax-highlighting
|
2022-08-16 20:40:55 -05:00
|
|
|
|
|
|
|
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
2022-07-29 20:51:50 -05:00
|
|
|
zsh_add_plugin zsh-users/zsh-autosuggestions
|
|
|
|
|
2024-05-16 00:02:22 -05:00
|
|
|
# Show off the system.
|
2024-05-11 12:00:10 -05:00
|
|
|
fastfetch
|