dotfiles/.zshrc

35 lines
1.2 KiB
Bash
Raw Normal View History

2025-05-29 22:33:42 +02:00
#!/usr/bin/zsh
# _
# _______| |__ _ __ ___
# |_ / __| '_ \| '__/ __|
# _ / /\__ \ | | | | | (__
#(_)___|___/_| |_|_| \___|
#
2025-05-30 14:33:14 +00:00
#Coast's ~/.zshrc
2025-05-29 22:33:42 +02:00
HISTFILE=$HOME/.cache/zsh/history
SAVEHIST=100000000
HISTSIZE=$SAVEHIST
setopt appendhistory
#tab completion
autoload -U compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
_comp_options+=(globdots)
#oh my zsh
ZSH_THEME="gentoo"
plugins=(git)
export ZSH="$HOME/.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
#colors
autoload -U colors && colors
setopt prompt_subst
#prompt
[ "$(id -u)" = 0 ] && PS1ICON="#" || PS1ICON='%'
2025-05-29 22:33:59 +02:00
PROMPT='%{$(echo -e "\e[38;2;254;128;25m")%}[%{$(echo -e "\e[38;2;235;219;178m")%}%n%{$(echo -e "\e[38;2;200;200;200m")%}@%{$(echo -e "\e[38;2;131;165;152m")%}coast %{$(echo -e "\e[38;2;235;219;178m")%}%~%{$(echo -e "\e[38;2;254;128;25m")%}]%$PS1ICON%{$(echo -e "\e[0m")%} '