export ZSH="$HOME/.oh-my-zsh" ZSH_THEME="" # Plguins plugins=( git fzf zsh-autosuggestions zsh-syntax-highlighting ) # oh-my-zsh setting source $ZSH/oh-my-zsh.sh # Autosuggest config ZSH_AUTOSUGGEST_STRATEGY=(history completion) # Aliases alias wllpprsw='~/dotfiles-gentoo/niri/.config/niri/theme-switcher.sh' alias drksw='darkman toggle' alias bft='~/docs/git-cloned/bfetch/bfetch --no-kernel' alias open='xdg-open' alias ls="eza -lha --icons" alias ll="eza -lh --icons" alias la="eza -lha --icons" alias tree="eza --tree --icons" alias musmnt="doas mount /dev/sdb1 /mnt/giga && nohup swingmusic >/tmp/swingmusic.log 2>&1 & disown" # Theme wallust() { command wallust run "$@" cat > ~/.config/btop/themes/wallust.theme << EOF main_bg="#$(grep -m1 '^color0' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" main_fg="#$(grep -m1 '^color15' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" title_bg="#$(grep -m1 '^color0' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" title_fg="#$(grep -m1 '^color15' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" highlight_bg="#$(grep -m1 '^color1' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" highlight_fg="#$(grep -m1 '^color15' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" progress_fg="#$(grep -m1 '^color2' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" progress_bg="#$(grep -m1 '^color0' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" graph_bg="#$(grep -m1 '^color0' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" graph_fg="#$(grep -m1 '^color1' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" box_bg="#$(grep -m1 '^color0' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" box_fg="#$(grep -m1 '^color7' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" misc_fg="#$(grep -m1 '^color7' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" selected_fg="#$(grep -m1 '^color0' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" selected_bg="#$(grep -m1 '^color4' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')" EOF } export MOZ_ENABLE_WAYLAND=1 # Walllust installation export PATH="$HOME/.cargo/bin:$PATH" # Swing Music installation export PATH="/home/seraphim/.local/bin:$PATH" # go tools (gopls etc.) export PATH="$HOME/go/bin:$PATH" eval "$(starship init zsh)" # zoxide: `z` jumps to frequent/recent dirs and feeds yazi's zoxide plugin eval "$(zoxide init zsh)" # yazi: cd into the last directory on exit function y() { local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd yazi "$@" --cwd-file="$tmp" if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then builtin cd -- "$cwd" fi rm -f -- "$tmp" } # opencode export PATH=/home/seraphim/.opencode/bin:$PATH