summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2025-08-20 23:35:06 +0200
committerache <ache@ache.one>2025-08-20 23:35:06 +0200
commit370ced22c717613e2f3e8608a34300b01b7d61c0 (patch)
tree57fa6d6f4e91a67e3935cd86b25069abf19313bf
parentFix bat not installed x2 (diff)
Add icat function
-rw-r--r--functions/icat.fish7
1 files changed, 7 insertions, 0 deletions
diff --git a/functions/icat.fish b/functions/icat.fish
new file mode 100644
index 0000000..cc83e17
--- /dev/null
+++ b/functions/icat.fish
@@ -0,0 +1,7 @@
+function icat --description "Image 'cat' only with kitty term otherwise with catimg"
+ if [ "$TERM" = xterm-kitty ]
+ kitty icat $argv
+ else
+ catimg -l 3 $argv
+ end
+end