dotfiles/.zshrc
2025-08-02 11:46:32 +03:30

27 lines
1 KiB
Bash

#!/bin/zsh
. /etc/profile
batstat=$(cat /sys/class/power_supply/BAT1/status 2>/dev/null)
charge=$(cat /sys/class/power_supply/BAT1/capacity 2>/dev/null)
if [[ "$batstat" == "Discharging" && "$charge" -lt 50 ]]; then
echo "Battery: $(sb-battery)"
fi
HISTFILE=$HOME/.cache/zsh/history
SAVEHIST=100000000
HISTSIZE=$SAVEHIST
setopt appendhistory
autoload -U compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
comp_options+=(globdots)
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
source /usr/share/zsh/site-functions/zsh-autosuggestions.zsh && fpath=(/usr/share/zsh/site-functions $fpath) && source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh
autoload -U colors && colors && setopt prompt_subst
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=5"
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=12"
export LIBCLANG_PATH=/usr/lib/llvm/20/lib64
source ~/.zprofile
PS1="%B%F{#4b5f61}[%F{#7a8a8d}%n%F{#4b5f61}@%M %F{#4f6469}%~%F{#4b5f61}]%f%F{#b7c0c5}%B%%%b%f "
export PATH=$PATH:/home/coast/.spicetify
export DISPLAY=:1
eval "$(starship init zsh)"