summary refs log tree commit diff
path: root/fish
diff options
context:
space:
mode:
authornoa@gaiwan.org2024-03-19 00:15:01 +0000
committernoa@gaiwan.org2024-03-19 00:15:01 +0000
commita990b7a96718ffab5f7772e62441ba804e7a9283 (patch)
tree2b64b98f5adb49a722fdb64b82cf5ce55631bf08 /fish
parent9c0c3cb3690201d677ce779a79b53922a259f36e (diff)
Add a colourless ls command
Diffstat (limited to 'fish')
-rw-r--r--fish/functions/ls.fish10
1 files changed, 10 insertions, 0 deletions
diff --git a/fish/functions/ls.fish b/fish/functions/ls.fish
new file mode 100644
index 0000000..94fa076
--- /dev/null
+++ b/fish/functions/ls.fish
@@ -0,0 +1,10 @@
+# ls but do it without colour
+
+function ls --description "List contents of directory"
+	# make ls show */=>@| indicators
+	isatty stdout
+	and set -a opt -F
+
+	# command $__fish_ls_command $__fish_ls_color_opt $opt $argv
+	command ls $opt $argv
+end