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/functions/fish_prompt.fish | 6 ++++++ fish/functions/fish_right_prompt.fish | 2 ++ fish/functions/grep.fish | 5 +++++ fish/functions/ls.fish | 10 ++++++++++ 4 files changed, 23 insertions(+) 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/functions') 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