2025-09-20 14:44:48 -04:00
# NO FUCKING BEEP
unsetopt BEEP
2026-01-29 17:34:47 -05:00
# Dark GTK for pwvucontrol
export GTK_THEME = Adwaita:dark
# Always run pywal (only on WSL)
2025-09-20 14:44:48 -04:00
if grep -qE "(Microsoft|WSL)" /proc/version & > /dev/null && [ -z " $TMUX " ] ; then
cat ~/.cache/wal/sequences
clear
fi
2026-01-29 17:34:47 -05:00
# Hledger
2025-09-20 14:44:48 -04:00
export LEDGER_FILE = ~/ExoKortex/2-Areas/Finances/finance_vault/tpouplier.hledger
2026-01-29 17:34:47 -05:00
# Emacs client
2025-09-20 14:44:48 -04:00
alias emacs = "emacsclient -c -a emacs"
# Opencode
alias oc = "opencode"
# Yazi
alias y = "yazi"
function yy( ) {
local tmp = " $( mktemp -t "yazi-cwd.XXXXXX" ) "
yazi " $@ " --cwd-file= " $tmp "
if cwd = " $( cat -- " $tmp " ) " && [ -n " $cwd " ] && [ " $cwd " != " $PWD " ] ; then
cd -- " $cwd "
fi
rm -f -- " $tmp "
}
2026-01-29 17:34:47 -05:00
# Nvim
2025-09-20 14:44:48 -04:00
export LANG = en_CA.UTF-8
export LC_ALL = en_CA.UTF-8
export EDITOR = "nvim"
# Set up fzf key bindings and fuzzy completion
source <( fzf --zsh)
# Capitalization fixing in tab completion
autoload -Uz compinit && compinit
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
2026-01-29 17:34:47 -05:00
# Bat
2025-09-20 14:44:48 -04:00
alias cat = bat
# aichat
alias ai = "aichat"
alias aido = "aichat -e"
aitts( ) {
paplay --raw --rate= 22050 --format= s16le --channels= 1 <( aichat " Answer only with speech. Your answer will be read outlound. No title, no bold or no special character. Only the short and direct answer. $* " | piper-tts --model en_US-amy-medium.onnx --output-raw)
}
2026-01-29 17:34:47 -05:00
# Tmux
2025-09-20 14:44:48 -04:00
alias t = 'tmux attach || tmux new'
# Docker
alias dco = "docker compose"
alias dps = "docker ps"
alias dpa = "docker ps -a"
alias dl = "docker ps -l -q"
alias dx = "docker exec -it"
2026-01-29 17:34:47 -05:00
# Cd
2025-09-20 14:44:48 -04:00
alias ..= "cd .."
alias ...= "cd ../.."
alias ....= "cd ../../.."
alias .....= "cd ../../../.."
alias ......= "cd ../../../../.."
# Git
alias gc = "git commit -m"
alias gca = "git commit -a -m"
alias gp = "git push origin HEAD"
alias gpu = "git pull origin"
alias gst = "git status"
alias glog = "git log --graph --topo-order --pretty='%w(100,0,6)%C(yellow)%h%C(bold)%C(black)%d %C(cyan)%ar %C(green)%an%n%C(bold)%C(white)%s %N' --abbrev-commit"
alias gdiff = "git diff"
alias gco = "git checkout"
alias gb = 'git branch'
alias gba = 'git branch -a'
alias gadd = 'git add'
alias ga = 'git add -p'
alias gcoall = 'git checkout -- .'
alias gr = 'git remote'
alias gre = 'git reset'
alias gcl = 'git clone'
2026-01-29 17:34:47 -05:00
# Lazygit
2025-09-20 14:44:48 -04:00
alias lg = "lazygit"
# NVIM
alias v = "nvim"
# Eza
alias l = "eza -l --icons --git -a"
alias lt = "eza --tree --level=2 --icons --git"
alias ltree = "eza --tree --level=2 --long --icons --git"
2026-01-29 17:34:47 -05:00
# Navigation
2025-09-20 14:44:48 -04:00
function cx( ) { cd " $@ " && l; }
function fcd( ) { cd " $( find . -type d -not -path '' | fzf) " && l; }
#function f() { echo "$(find . -type f -not -path '*/.*' | fzf)" | pbcopy }
function fv( ) { nvim " $( find . -type f -not -path '*/.*' | fzf) " }
# Command history
HISTFILE = ~/.zsh_history
HISTSIZE = 10000
SAVEHIST = 10000
setopt appendhistory
# Starship
eval " $( starship init zsh) "
# Zoxide
eval " $( zoxide init zsh) "
2026-01-29 17:34:47 -05:00
# Hyprshot
2025-09-20 14:44:48 -04:00
export HYPRSHOT_DIR = "Images"
2026-01-29 17:34:47 -05:00
# Direnv
2025-09-20 14:44:48 -04:00
# eval "$(direnv hook zsh)"
# Atuin
#eval "$(atuin init zsh)"