46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
# speedie's zsh configuration
|
|
# https://github.com/speedie-de/szsh
|
|
|
|
# Features
|
|
autoload -U colors && colors
|
|
autoload -U compinit promptinit
|
|
autoload -Uz compinit
|
|
command -v emerge > /dev/null && promptinit; prompt gentoo
|
|
zstyle ':completion::complete:*' use-cache 1
|
|
zstyle ':completion:*' menu select
|
|
zmodload
|
|
compinit
|
|
_comp_options+=(globdots)
|
|
|
|
# Settings
|
|
POWERLINE=true # enable powerline
|
|
|
|
# Source other dotfiles
|
|
source $ZDOTDIR/.zsh_export
|
|
source $ZDOTDIR/.zsh_ps
|
|
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
|
|
|
|
#######################################################
|
|
|
|
if [ "$POWERLINE" = "true" ]; then
|
|
rm -f /tmp/p10k*
|
|
clear
|
|
|
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
fi
|
|
|
|
source $ZPLUGINDIR/zsh-powerline/powerlevel10k.zsh-theme
|
|
source $ZPLUGINDIR/zsh-powerline/zsh-powerline-options.zsh
|
|
fi
|
|
|
|
cd && clear
|
|
|
|
command -v "$FETCH" > /dev/null && $FETCH
|