aboutsummaryrefslogtreecommitdiffstats
path: root/fish2024/functions
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-03-05 10:48:40 +0000
committerMatthew Lemon <y@yulqen.org>2024-03-05 10:48:40 +0000
commitb28df6379a14c5bfb11c1ccee22e1e1996972475 (patch)
tree9f2c2c297ca141a3ae0bfdd5a644b24284d77d7f /fish2024/functions
parenta6dda97b8f788537459c74e0f5ae2f7efc387885 (diff)
Adding some much missed fish aliai
Diffstat (limited to 'fish2024/functions')
-rw-r--r--fish2024/functions/k5days.fish4
-rw-r--r--fish2024/functions/sync-tunnel.fish4
-rw-r--r--fish2024/functions/tcomptoday.fish4
-rw-r--r--fish2024/functions/ttags.fish4
4 files changed, 16 insertions, 0 deletions
diff --git a/fish2024/functions/k5days.fish b/fish2024/functions/k5days.fish
new file mode 100644
index 0000000..9fc339b
--- /dev/null
+++ b/fish2024/functions/k5days.fish
@@ -0,0 +1,4 @@
+function k5days --wraps='khal list today 5 days' --description 'alias k5days=khal list today 5 days'
+ khal list today 5 days $argv
+
+end
diff --git a/fish2024/functions/sync-tunnel.fish b/fish2024/functions/sync-tunnel.fish
new file mode 100644
index 0000000..ff17ee5
--- /dev/null
+++ b/fish2024/functions/sync-tunnel.fish
@@ -0,0 +1,4 @@
+function sync-tunnel --wraps='ssh -N -L 9090:127.0.0.1:8384 syncthing@syncthing-ct.banded-neon.ts.net' --description 'alias sync-tunnel=ssh -N -L 9090:127.0.0.1:8384 syncthing@syncthing-ct.banded-neon.ts.net'
+ ssh -N -L 9090:127.0.0.1:8384 syncthing@syncthing-ct.banded-neon.ts.net $argv
+
+end
diff --git a/fish2024/functions/tcomptoday.fish b/fish2024/functions/tcomptoday.fish
new file mode 100644
index 0000000..674c23b
--- /dev/null
+++ b/fish2024/functions/tcomptoday.fish
@@ -0,0 +1,4 @@
+function tcomptoday --wraps='task end.after:today-1d completed' --description 'alias tcomptoday=task end.after:today-1d completed'
+ task end.after:today-1d completed $argv
+
+end
diff --git a/fish2024/functions/ttags.fish b/fish2024/functions/ttags.fish
new file mode 100644
index 0000000..09667f1
--- /dev/null
+++ b/fish2024/functions/ttags.fish
@@ -0,0 +1,4 @@
+function ttags --wraps='task rc.list.all.tags=1 tags' --description 'alias ttags=task rc.list.all.tags=1 tags'
+ task rc.list.all.tags=1 tags $argv
+
+end