diff options
author | noa | 2024-09-07 08:03:52 +0000 |
---|---|---|
committer | noa | 2024-09-07 08:03:52 +0000 |
commit | b9a1cbafda2aaed36c8eca4f7b68aae583918561 (patch) | |
tree | 4a0ff7b1abcdfa8f0b94c44485e32d84cdffa1b5 /fish/functions | |
parent | 4d75f09ba0f3547ec451e2d3b72422d0822c0b6b (diff) |
Add configurations to fossil repo
Diffstat (limited to 'fish/functions')
-rw-r--r-- | fish/functions/fish_prompt.fish | 6 | ||||
-rw-r--r-- | fish/functions/fish_right_prompt.fish | 2 | ||||
-rw-r--r-- | fish/functions/grep.fish | 5 | ||||
-rw-r--r-- | fish/functions/ls.fish | 10 |
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 |