index : dotfiles.git

ascending towards madness

# 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

# Environment variables
export EDITOR=hx
export TERM=xterm-256color
export QT_QPA_PLATFORMTHEME=qt5ct
export GTK_THEME=Catppuccin-Mocha-Standard-Teal-Dark
export PATH=$HOME/.local/bin:/usr/local/bin:$HOME/.dotnet/tools:$HOME/go/bin:$HOME/.local/lib/python3.8/site-packages:$HOME/.cargo/bin/:$HOME/.scripts/:$PATH
export ZSH="$HOME/.oh-my-zsh"
export JAVA_HOME="/usr/lib/jvm/java-17-openjdk/"
export PROJECTS="$HOME/Projects"
export SCRIPTS="$HOME/.scripts"
export SSH="$HOME/.ssh/"

# Theme
ZSH_THEME="powerlevel10k/powerlevel10k"

# I'm a hypocrite, so what?
DISABLE_UPDATE_PROMPT="true"

# Plugins
plugins=(git zsh-autosuggestions)

source $ZSH/oh-my-zsh.sh

# User configuration
# export MANPATH="/usr/local/man:$MANPATH"

# Aliases
# ZSH stuff
alias zshconfig="hx ~/.zshrc"
alias zshrc="hx ~/.zshrc"
alias omzsh="hx ~/.oh-my-zsh"

# Package management
# alias autoremove="sudo pacman -Qdtq | sudo pacman --noconfirm -Rs -"
# alias list-aur-packages="sudo pacman -Qm"

# Replacement
alias helix="hx"
alias firefox="librewolf"
alias thunderbird="betterbird"

# Helpers
alias reload="xfce4-panel -r"
alias flatten="find . -mindepth 2 -type f -exec mv -i '{}' . ';'"
alias autoflatten="find . -mindepth 2 -type f -exec mv -f '{}' . ';'"
alias tardirs="for i in */; do tar -czvf "${i%/}.tar.gz" "$i"; done"
alias zipdirs="for i in */; do zip -r "${i%/}.zip" "$i"; done"

# Scripts
alias dashboard="zellij --layout $HOME/.config/zellij/dashboard.kdl"
alias dash="dashboard"

# Programming
gi() { curl -sL https://www.gitignore.io/api/$@ ;}
licenses() { curl -sL https://licenses.holly.sh/$@ ;}

alias api="$SCRIPTS/zellij-launcher.zsh . api-develop"
alias desktop="$SCRIPTS/zellij-launcher.zsh . desktop-develop"

# Funs
alias cowspeak="cowspeak -nc"
alias cowsay="cowspeak"
alias cowfortune="cowspeak"

# Annoyances

# Secrets
source ~/.secrets

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

source $HOME/.config/broot/launcher/bash/br