From e8a146b6aac3e3c80bdbaefeb340b1d4a2a83c2c Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 17 Dec 2016 13:16:14 +0100 Subject: Move fish coloring into `config.fish` instead of configuring them using the `fish_config` UI --- fish/.config/fish/config.fish | 10 ++++++++++ fish/.config/fish/functions/man.fish | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 fish/.config/fish/functions/man.fish diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 1b65a09..9b59053 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -11,6 +11,16 @@ alias weather='curl wttr.in/Karlsruhe' eval (dircolors -c ~/.dir_colors) eval (python -m virtualfish) +set fish_color_normal white +set fish_color_command magenta --bold +set fish_color_param green +set fish_color_error brred +set fish_color_operator cyan +set fish_color_comment white +set fish_color_cwd green +set fish_color_quote brown +set fish_color_autosuggestion 555 + if [ (hostname) = "obelix" ] set PATH $PATH /usr/local/bin/ /usr/local/texlive/2014/bin/x86_64-linux ~/.cabal/bin/ diff --git a/fish/.config/fish/functions/man.fish b/fish/.config/fish/functions/man.fish new file mode 100644 index 0000000..0059a73 --- /dev/null +++ b/fish/.config/fish/functions/man.fish @@ -0,0 +1,6 @@ +function man --description "colored man" + set -x LESS_TERMCAP_md (printf "\e[1;32m") + set -x LESS_TERMCAP_me (printf "\e[0m") + + env man $argv +end -- cgit v1.2.3