Files
dotfiles/config/shell/functions
T
venomade a568a964fd MacOS Nix
Asahi is just not perfectly usable yet.
Moved stuff, went nix.
2026-02-16 17:31:16 +00:00

17 lines
371 B
Plaintext

gvc() {
if [[ $1 == "clone" ]]; then
shift
git clone git@git.venomade.com:"$@"
else
ssh git@git.venomade.com "$@"
fi
}
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
command yazi "$@" --cwd-file="$tmp"
IFS= read -r -d '' cwd < "$tmp"
[ "$cwd" != "$PWD" ] && [ -d "$cwd" ] && builtin cd -- "$cwd"
rm -f -- "$tmp"
}