#!/bin/zsh # 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;xcb" 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 fast-syntax-highlighting ) source "$XDG_CONFIG_HOME/zsh/path" source "$ZSH/oh-my-zsh.sh" source "$XDG_CONFIG_HOME/zsh/path" source "$XDG_CONFIG_HOME/zsh/icons" source "$XDG_CONFIG_HOME/zsh/alias" source "$XDG_CONFIG_HOME/zsh/func" source "$XDG_CONFIG_HOME/zsh/env" # key binding bindkey -s '^o' 'lfcd\n' bindkey -s '^f' 'dolphin . &> /dev/null & disown\n' bindkey -s '^x' ' &> /dev/null & disown\n' # zoxide eval "$(zoxide init zsh --cmd cd)" [ -s "/home/linux/.bun/_bun" ] && source "/home/linux/.bun/_bun" # pnpm export PNPM_HOME="/home/linux/.local/share/pnpm" case ":$PATH:" in *":$PNPM_HOME:"*) ;; *) export PATH="$PNPM_HOME:$PATH" ;; esac # pnpm end