speedie-zsh/.config/zsh/dotfiles/.zshrc

39 lines
1,000 B
Bash
Raw Normal View History

2022-11-30 20:47:36 +01:00
# speedie's zsh configuration
# https://github.com/speedie-de/szsh
# Features
autoload -U colors && colors
2023-01-23 22:20:43 +01:00
autoload -U compinit promptinit
2022-11-30 20:47:36 +01:00
autoload -Uz compinit
2023-01-23 22:20:43 +01:00
command -v emerge > /dev/null && promptinit; prompt gentoo
2022-11-30 20:47:36 +01:00
zstyle ':completion::complete:*' use-cache 1
zstyle ':completion:*' menu select
2023-01-23 22:20:43 +01:00
zmodload
2022-11-30 20:47:36 +01:00
compinit
_comp_options+=(globdots)
# Settings
2022-12-19 16:11:45 +01:00
STARSHIP=false
POWERLINE=true
2022-11-30 20:47:36 +01:00
# Source other dotfiles
source $ZDOTDIR/.zsh_export
source $ZDOTDIR/.zsh_ps
2022-12-19 16:11:45 +01:00
source $ZDOTDIR/.zsh_func
2022-11-30 20:47:36 +01:00
source $ZDOTDIR/.zsh_alias
# Plugins
source $ZPLUGINDIR/zsh-vi-mode/zsh-vi-mode.zsh
source $ZPLUGINDIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $ZPLUGINDIR/zsh-autosuggestions/zsh-autosuggestions.zsh
source $ZPLUGINDIR/zsh-titles/zsh-titles.zsh
#######################################################
2022-12-19 16:11:45 +01:00
command -v starship > /dev/null || update_starship
[ "$STARSHIP" = "true" ] && eval "$(starship init zsh)" && write_starship_config
2022-11-30 20:47:36 +01:00
cd && clear
command -v "$FETCH" > /dev/null && $FETCH