dots/.zshrc

29 lines
1.1 KiB
Bash

# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# for laptop backlight
# alias bl="echo $1 | sudo tee /sys/class/backlight/intel_backlight/brightness"
export BL_DEVICE=/sys/class/backlight/intel_backlight
backlight() {
echo $1 > $BL_DEVICE/brightness
}
plugins=(
zsh-autosuggestions
git
)
export NODE_PATH=/usr/lib/node_modules
# flyscrape
export PATH="/home/hex/.flyscrape:/home/hex/.cargo/bin:$PATH:$HOME/go/bin"
# Created by `pipx` on 2024-07-17 11:05:58
export PATH="$PATH:/home/hex/.local/bin"
source ~/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh