dotfiles/.zshrc

28 lines
1.1 KiB
Bash
Raw Normal View History

2025-06-04 04:38:36 +03:30
#!/bin/sh
#historie
2025-05-29 22:33:42 +02:00
HISTFILE=$HOME/.cache/zsh/history
SAVEHIST=100000000
HISTSIZE=$SAVEHIST
setopt appendhistory
2025-06-04 04:38:36 +03:30
#<tab>faediggoerelse
2025-05-29 22:33:42 +02:00
autoload -U compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
2025-06-04 04:38:36 +03:30
comp_options+=(globdots)
#ohmyzsh
2025-06-05 09:30:06 +03:30
ZSH_THEME="gentoo" && export ZSH=$HOME/.config/.oh-my-zsh && source $ZSH/oh-my-zsh.sh
2025-05-29 22:33:42 +02:00
#source
2025-06-04 04:38:36 +03:30
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
2025-06-04 07:57:39 +03:30
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=5"
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=12"
2025-05-29 22:33:42 +02:00
#prompt
2025-06-05 09:30:06 +03:30
[ "$(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")%} '
2025-06-04 04:38:36 +03:30
#coast's zshrc :3
2025-06-05 09:30:06 +03:30
fpath=(~/.zsh/completions $fpath)