27 lines
1.1 KiB
Bash
27 lines
1.1 KiB
Bash
#!/bin/sh
|
|
#historie
|
|
HISTFILE=$HOME/.cache/zsh/history
|
|
SAVEHIST=100000000
|
|
HISTSIZE=$SAVEHIST
|
|
setopt appendhistory
|
|
#<tab>faediggoerelse
|
|
autoload -U compinit
|
|
zstyle ':completion:*' menu select
|
|
zmodload zsh/complist
|
|
compinit
|
|
comp_options+=(globdots)
|
|
#ohmyzsh
|
|
ZSH_THEME="gentoo" && export ZSH=$HOME/.config/.oh-my-zsh && source $ZSH/oh-my-zsh.sh
|
|
#source
|
|
source "$HOME/.config/shell/aliases" && source "$HOME/.config/shell/exports" && source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh && fpath=(/usr/share/zsh/site-functions $fpath) && source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
#farver
|
|
autoload -U colors && colors && setopt prompt_subst
|
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=5"
|
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=12"
|
|
#prompt
|
|
[ "$(id -u)" = 0 ] && PS1ICON="#" || PS1ICON='$'
|
|
|
|
PROMPT='%{$(echo -e "\e[38;2;114;47;55m")%}[%{$(echo -e "\e[38;2;197;198;200m")%}%n%{$(echo -e "\e[38;2;114;47;55m")%}@core %{$(echo -e "\e[38;2;197;198;200m")%}%~%{$(echo -e "\e[38;2;114;47;55m")%}]%$PS1ICON$%{$(echo -e "\e[0m")%} '
|
|
|
|
#coast's zshrc :3
|
|
fpath=(~/.zsh/completions $fpath)
|