dotfiles/private_dot_config/zsh/executable_dot_zshrc
array-in-a-matrix 3cb2722763 spaces
2022-09-26 22:32:04 -04:00

56 lines
1.2 KiB
Plaintext

# If using sway then use pywal theme
if [[ $XDG_SESSION_DESKTOP == "sway" ]]; then
cat ~/.cache/wal/sequences
export XDG_CURRENT_DESKTOP=sway
fi
# if using wayland allow native rendering
if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
export MOZ_ENABLE_WAYLAND=1
export QT_QPA_PLATFORM=wayland
export GDK_BACKEND="wayland,x11"
fi
# if in tty then exec unimatrix
if [[ -n $(tty | grep tty) ]]; then
source ~/.cache/wal/colors-tty.sh
unimatrix -w -s 95
fi
# Lines configured by zsh-newuser-install
HISTFILE="$XDG_CONFIG_HOME/zsh/histfile"
HISTSIZE=1000
SAVEHIST=10000
setopt autocd
unsetopt beep
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename "$XDG_CONFIG_HOME/zsh/.zshrc"
autoload -Uz compinit
compinit
# End of lines added by compinstall
ZSH_THEME="agnoster"
plugins=(
# git
# zsh-autosuggestions
archlinux
emoji
zsh-syntax-highlighting
)
source "$XDG_CONFIG_HOME/zsh/icons"
source "$XDG_CONFIG_HOME/zsh/alias"
source "$XDG_CONFIG_HOME/zsh/func"
source "$ZSH/oh-my-zsh.sh"
bindkey -s '^o' 'lfcd\n'
# zoxide
eval "$(zoxide init zsh --cmd cd)"
# bun completions
[ -s "/home/linux/.bun/_bun" ] && source "/home/linux/.bun/_bun"