blob: a3003161e11180353827d2b3ec24f04a24c5722b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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"
}
|