2025-06-14 19:50:32 +03:30
|
|
|
#!/bin/zsh
|
2025-07-16 18:06:20 +03:30
|
|
|
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
|
2025-05-29 22:33:42 +02:00
|
|
|
HISTFILE=$HOME/.cache/zsh/history
|
|
|
|
SAVEHIST=100000000
|
|
|
|
HISTSIZE=$SAVEHIST
|
|
|
|
setopt appendhistory
|
|
|
|
autoload -U compinit
|
|
|
|
zstyle ':completion:*' menu select
|
|
|
|
zmodload zsh/complist
|
|
|
|
compinit
|
2025-06-04 04:38:36 +03:30
|
|
|
comp_options+=(globdots)
|
2025-06-10 14:26:39 +03:30
|
|
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
|
2025-06-28 08:39:50 +03:30
|
|
|
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
|
2025-06-04 04:38:36 +03:30
|
|
|
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-07-16 18:06:20 +03:30
|
|
|
export LIBCLANG_PATH=/usr/lib/llvm/20/lib64
|
2025-07-03 16:49:14 +03:30
|
|
|
source ~/.zprofile
|
2025-07-16 18:06:20 +03:30
|
|
|
|
2025-07-31 07:31:16 +03:30
|
|
|
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
|