summary refs log tree commit diff
path: root/fish/functions
diff options
context:
space:
mode:
Diffstat (limited to 'fish/functions')
-rw-r--r--fish/functions/fish_prompt.fish6
-rw-r--r--fish/functions/fish_right_prompt.fish2
-rw-r--r--fish/functions/grep.fish5
-rw-r--r--fish/functions/ls.fish10
4 files changed, 23 insertions, 0 deletions
diff --git a/fish/functions/fish_prompt.fish b/fish/functions/fish_prompt.fish
new file mode 100644
index 0000000..eeec7d8
--- /dev/null
+++ b/fish/functions/fish_prompt.fish
@@ -0,0 +1,6 @@
+function fish_prompt
+    #set_color $fish_color_cwd
+    echo -n (basename $PWD)
+    #set_color normal
+    echo -n ' ) '
+end
diff --git a/fish/functions/fish_right_prompt.fish b/fish/functions/fish_right_prompt.fish
new file mode 100644
index 0000000..c1b019e
--- /dev/null
+++ b/fish/functions/fish_right_prompt.fish
@@ -0,0 +1,2 @@
+function fish_right_prompt
+end
diff --git a/fish/functions/grep.fish b/fish/functions/grep.fish
new file mode 100644
index 0000000..bf66e8e
--- /dev/null
+++ b/fish/functions/grep.fish
@@ -0,0 +1,5 @@
+# grep without colour
+
+function grep
+	command grep --color=never $argv
+end
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