Something went wrong. Try again.
my dotfiles
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305# goto directory by namesetopt autocd
# zsh pluginssource $HOME/.config/plugins/completion/completion.zshsource $HOME/.config/plugins/fsh/fast-syntax-highlighting.plugin.zshsource $HOME/.config/plugins/autosuggestions/zsh-autosuggestions.plugin.zsh
# enable built in scriptssource $HOME/.local/scripts/entry.sh
# shell configurationtypeset -A \ prompt_with_newline_terminals \ multiplexer_terminals \ unsupported_terminals \ logo_ls_enabled_terminals
prompt_with_newline_terminals=( [iTerm.app]=1 [Tabby]=1 [ghostty]=1)
multiplexer_terminals=( [tmux]=1)
unsupported_terminals=( [WarpTerminal]=1 [Apple_Terminal]=1 [zed]=1 [CodeEditApp_Terminal]=1 [Jetbrains.Fleet]=1)
logo_ls_enabled_terminals=( [iTerm.app]=1 [""]=1 [ghostty]=1 [tmux]=1 [CodeEditApp_Terminal]=1 [Jetbrains.Fleet]=1)
# check which group the current terminal belongs toif [[ -n ${prompt_with_newline_terminals[$TERM_PROGRAM]} ]]; then # newline after every command precmd() precmd() echo eval "$(oh-my-posh init zsh --config $HOME/.config/themes/spaceship.omp.json)"elif [[ -n ${multiplexer_terminals[$TERM_PROGRAM]} ]]; then eval "$(oh-my-posh init zsh --config $HOME/.config/themes/spaceship.tmux.json)"elif [[ -z ${unsupported_terminals[$TERM_PROGRAM]} ]]; then # default case for all other terminals if [[ "$PWD" != "$HOME/Developer/rust/playground"* ]]; then eval "$(oh-my-posh init zsh --config $HOME/.config/themes/custom/agnoster.yml)" fifi
if [[ -n ${logo_ls_enabled_terminals[$TERM_PROGRAM]} ]]; then alias ls="logo-ls" alias l="/bin/ls"fi
# bun completions[ -s "/Users/themackabu/.bun/_bun" ] && source "/Users/themackabu/.bun/_bun"
# gnupgexport GPG_TTY=$(tty)
# visual editorexport EDITOR=meow
# return symbolPROMPT_EOL_MARK="⏎"
# neovimalias nv='nvim'
# get pathalias path='echo -e ${PATH//:/\\n}'
# get timealias now='date +"%T"'
# meowalias meow='_meow_handler'alias mrrp='_meow_handler'alias ':3'='_meow_handler'
# gui editoralias edit="open -a CotEditor"
# funny quotesalias quote="fortune | cowsay -W 30"
# get your ipalias myip="curl ip.themackabu.dev"
# gnu coreutilsalias date='gdate'
# cutealias boykisser="cowsay -f $HOME/Downloads/boykisser.cow"
alias myinfo="PF_INFO='ascii title os host kernel uptime pkgs memory' HOSTNAME=M1Pro pfetch"alias picofetch="PF_INFO='title os host kernel uptime pkgs memory' HOSTNAME=M1Pro pfetch"
# make homebrew fasterexport HOMEBREW_NO_AUTO_UPDATE=1
# denoexport DENO_INSTALL="/Users/themackabu/.deno"export PATH="$DENO_INSTALL/bin:$PATH"
# tailscalealias tailscale="/Applications/Tailscale.app/Contents/MacOS/Tailscale"
# uwufetchalias uwu="uwufetch --image ~/Desktop/awww.png"
# vm.frameworkalias vm="limactl"alias vx="lima"
# password manageralias pass="gopass"
# cursor editoralias c="cursor"
# close cloudflare warpalias dewarp="killall 'Cloudflare WARP'"
# just jsalias just="~/Developer/rust/js_runtime/just"
# pythonalias python="python3"alias pip="python3 -m pip"
# godot clialias godot="/Applications/Godot.app/Contents/MacOS/Godot"
# pnpmexport PNPM_HOME="/Users/themackabu/Library/pnpm"case ":$PATH:" in *":$PNPM_HOME:"*) ;; *) export PATH="$PNPM_HOME:$PATH" ;;esac
# screenshot shadow togglesalias screen_shadow_on="defaults write com.apple.screencapture 'disable-shadow' -bool 'false'"alias screen_shadow_off="defaults write com.apple.screencapture 'disable-shadow' -bool 'true'"
# count lines of codealias lines="cloc"
# bat-katalias kat="bat"
# youtube DL mp3alias ytmp3="noglob yt-dlp -f bestaudio --extract-audio --audio-quality 0 --audio-format mp3 -o '%(title)s.%(ext)s'"
# youtube DL mp4alias ytdl="noglob yt-dlp -f best --format mp4 -o '%(title)s.%(ext)s'"
# best qualityalias bestdl="noglob yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' --format mp4 -o '%(title)s.%(ext)s'"
# disable globbingalias s3mp3="noglob s3mp3"alias gencov="noglob generate_cover"
function s3yt { s3mp3 "https://youtu.be/$1"}
function s3ls { mc ls "s3/$1"}
function s3mls { s3ls "mp3-embed/$1"}
# youtube DL cover artalias ytcov="ytmp3 --add-metadata --ppa \"ThumbnailsConvertor+ffmpeg_o:-c:v png -vf crop='ih'\" --embed-thumbnail --postprocessor-args \"-id3v2_version 3\" -o \"%(uploader)s/%(title)s.%(ext)s\""
# android studio pathexport ANDROID_HOME=/Users/themackabu/Library/Android/sdkexport PATH=$PATH:$ANDROID_HOME/emulatorexport PATH=$PATH:$ANDROID_HOME/platform-tools
# Wasmerexport WASMTIME_HOME="$HOME/.wasmtime"export PATH="$WASMTIME_HOME/bin:$PATH"export WASMER_DIR="/Users/themackabu/.wasmer"[ -s "$WASMER_DIR/wasmer.sh" ] && source "$WASMER_DIR/wasmer.sh"
# llvmexport PATH="/opt/homebrew/opt/llvm/bin:$PATH"export LDFLAGS="-L/opt/homebrew/opt/llvm/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm/lib/c++"export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
# postgres libexport PATH="/opt/homebrew/opt/postgresql@16/bin:$PATH"export LDFLAGS="-L/opt/homebrew/opt/libpq/lib"export CPPFLAGS="-I/opt/homebrew/opt/libpq/include"
# modularexport MODULAR_HOME="$HOME/.modular"export PATH="$MODULAR_HOME/pkg/packages.modular.com_mojo/bin:$PATH"
# java latest versionexport JAVA_TOOL_OPTIONS="--enable-preview"
# arc browseralias arc="open -a Arc.app --args --disable-blink-features=PrettyPrintJSONDocument"
# cargo# export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="git cargo fetch"# export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="git cargo upgrade"# export CARGO_NET_GIT_FETCH_WITH_CLI=true# export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=git
# rust nova pathexport RA_PATH="/Users/themackabu/.cargo/bin/rust-analyzer"
# thefuck autocorrecteval $(thefuck --alias)
# brootsource /Users/themackabu/.config/broot/launcher/bash/br
# fastfetchalias ff="fastfetch --cpu-temp --gpu-temp --battery-temp"alias neofetch="fastfetch --cpu-temp --gpu-temp --battery-temp"alias lnconfig="~/.config/fastfetch/link_config.sh"
# piracy.mp3function car { tr A-Z a-z <<< "$1" | sed -e 's/[^ ]/:pi8&:/g' -e 's/ /:pi8blank:/g'}
# link homebrew items that aren't in pathfunction blink { local targetdir targetdir=($(brew --cellar $1)/*/bin) || return local linksdir=$(brew --repo)/bin
for ex in $(find "$targetdir" -type f -maxdepth 1); do local exname=${ex##*/} if builtin which "$exname" &>/dev/null; then echo " $exname already available in the path - skipped" else ln -s "$ex" "$linksdir/" && echo "$exname linked from $linksdir" fi done}
# ampere simple sshalias ampere="ssh ampere -t"
# command handlerfunction command_not_found_handler() { if [[ $1 == "ampere-"* ]]; then cmd=${1#ampere-} ampere "$cmd" return 0 fi echo "zsh: command not found: $1" return 127}
# git branch remote cleanupclean_local_branches() { local remote=${1:-origin} for branch in $(git branch | sed 's/\*//'); do if [ -z "$(git branch --all | grep $remote | grep $branch)" ]; then git branch -D $branch fi done}
# handle meowing_meow_handler() { [ $# -gt 0 ] && $HOME/.cargo/bin/meow "$@" || echo "meow"; }
# lm studioexport PATH="$PATH:/Users/themackabu/.lmstudio/bin"
# moon monorepoexport PATH="/Users/themackabu/.moon/bin:$PATH"
# cargo-mommyalias cargo="cargo mommy"
export CARGO_MOMMYS_ROLES="mommy"export CARGO_MOMMYS_PRONOUNS="her"export CARGO_MOMMYS_LITTLE="boy/pet/kitty/sharky/cutie"export CARGO_MOMMYS_EMOTES="❤️/💖/💗/💓/💞/:3"