From b9a1cbafda2aaed36c8eca4f7b68aae583918561 Mon Sep 17 00:00:00 2001 From: noa Date: Sat, 7 Sep 2024 08:03:52 +0000 Subject: Add configurations to fossil repo --- fish/config.fish | 49 +++++++++++++++++++++++++++++++++++ fish/fish_variables | 7 +++++ fish/functions/fish_prompt.fish | 6 +++++ fish/functions/fish_right_prompt.fish | 2 ++ fish/functions/grep.fish | 5 ++++ fish/functions/ls.fish | 10 +++++++ 6 files changed, 79 insertions(+) create mode 100644 fish/config.fish create mode 100644 fish/fish_variables create mode 100644 fish/functions/fish_prompt.fish create mode 100644 fish/functions/fish_right_prompt.fish create mode 100644 fish/functions/grep.fish create mode 100644 fish/functions/ls.fish (limited to 'fish') 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 -- cgit 1.4.1-2-gfad0