Files
dotfiles/.config/shell/functions
T
venomade 0bd1501855 Asahi
Soft reset of dotfiles specific to Asahi, Sway and Neovim.
2026-02-11 11:42:58 +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"
}