about summary refs log tree commit diff
path: root/.config/shell/functions
diff options
context:
space:
mode:
authorvenomade <venomade@venomade.com>2026-02-11 11:42:58 +0000
committervenomade <venomade@venomade.com>2026-02-11 11:42:58 +0000
commit0bd150185551b6d8835d022c15a5f6e832d51113 (patch)
tree10bf3f3443df49a44eb47b328b73b7e76b0a4924 /.config/shell/functions
parent8d688d1107c46b6dfdcaf02fa5c9c4c8a4640e65 (diff)
Asahi
Soft reset of dotfiles specific to Asahi, Sway and Neovim.
Diffstat (limited to '.config/shell/functions')
-rw-r--r--.config/shell/functions16
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"
+}