summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-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