dotfiles/.zshrc

25 lines
967 B
Bash
Raw Normal View History

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 PS1="%B%F{#d77189}[%F{#e89cae}%n%F{#d77189}@%M %F{#e6adb8}%~%F{#d77189}]%f%F{#fce9ec}%B$%b%f "
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