export EDITOR="hx"
export DOTNET_ROOT="/usr/local/share/dotnet"
export PATH="/opt/homebrew/opt/omnisharp:$PATH"
alias py="python3"
alias pip="python3 -m pip"
alias border="sh ~/dotfiles/yabai/.config/yabai/border.sh"
alias ts="tailscale"
alias fetch="fastfetch"
alias usagi="./usagi"
eval "$(starship init zsh)"

function yy() {
	local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
	if command -v yazi &>/dev/null; then
		yazi "$@" --cwd-file="$tmp"
	else
		nvim .
	fi
	if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
		cd -- "$cwd"
	fi
	rm -f -- "$tmp"
}
