diff options
| author | venomade <venomade@venomade.com> | 2026-02-16 17:31:16 +0000 |
|---|---|---|
| committer | venomade <venomade@venomade.com> | 2026-02-16 17:31:16 +0000 |
| commit | a568a964fd6a9efba388b2b4919339c0b7dfe51d (patch) | |
| tree | 0c6adbf753de1c0b469e911668a82c6b2002f5f8 /config/shell/functions | |
| parent | 9d2c3f898a97de16b986d4e494f31e6c6f3d176a (diff) | |
Asahi is just not perfectly usable yet. Moved stuff, went nix.
Diffstat (limited to 'config/shell/functions')
| -rw-r--r-- | config/shell/functions | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/config/shell/functions b/config/shell/functions new file mode 100644 index 0000000..a300316 --- /dev/null +++ b/config/shell/functions @@ -0,0 +1,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" +} |
