summary refs log tree commit diff
path: root/fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish')
-rw-r--r--fish/config.fish49
-rw-r--r--fish/fish_variables7
-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
6 files changed, 79 insertions, 0 deletions
diff --git a/fish/config.fish b/fish/config.fish
new file mode 100644
index 0000000..046e1ff
--- /dev/null
+++ b/fish/config.fish
@@ -0,0 +1,49 @@
+if status is-interactive
+    # Commands to run in interactive sessions can go here
+end
+
+set fish_greeting
+
+fish_add_path $HOME/Scripts
+
+set -Ux NO_COLOR
+
+# unset most of the colours
+set fish_color_normal normal
+set fish_color_command
+set fish_color_quote
+set fish_color_redirection
+set fish_color_end
+set fish_color_error
+set fish_color_param
+set fish_color_comment
+set fish_color_match
+set fish_color_selection --reverse
+set fish_color_search_match --reverse
+set fish_color_history_current
+set fish_color_operator
+set fish_color_escape
+set fish_color_cwd                         # normal
+set fish_color_cwd_root                    # normal
+set fish_color_valid_path
+set fish_color_autosuggestion --underline
+set fish_color_user                        # normal
+set fish_color_host                        # normal
+set fish_color_cancel --reverse
+set fish_pager_color_prefix --underline
+set fish_pager_color_progress red
+set fish_pager_color_completion            # normal
+set fish_pager_color_description
+set fish_pager_color_selected_background --reverse
+set fish_color_host_remote
+set fish_pager_color_selected_description
+set fish_pager_color_selected_prefix
+set fish_color_option
+set fish_pager_color_secondary_background
+set fish_color_keyword
+set fish_pager_color_background
+set fish_pager_color_secondary_description
+set fish_pager_color_secondary_prefix
+set fish_pager_color_selected_completion
+set fish_pager_color_secondary_completion
+set fish_color_status
diff --git a/fish/fish_variables b/fish/fish_variables
new file mode 100644
index 0000000..fc92707
--- /dev/null
+++ b/fish/fish_variables
@@ -0,0 +1,7 @@
+# This file contains fish universal variable definitions.
+# VERSION: 3.0
+SETUVAR --export MOZ_ENABLE_WAYLAND:1
+SETUVAR --export NO_COLOR:\x1d
+SETUVAR __fish_initialized:3400
+SETUVAR fish_key_bindings:fish_default_key_bindings
+SETUVAR fish_user_paths:/usr/local/go/bin\x1e/home/noa/\x2econfig/Scripts\x1e/home/noa/binaries\x1e/home/noa/\x2elocal/bin
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