diff --git a/conf.d/00_environment.fish b/conf.d/00_environment.fish new file mode 100644 index 0000000..b7add77 --- /dev/null +++ b/conf.d/00_environment.fish @@ -0,0 +1,25 @@ +# +# Environment +# + +set -gx EDITOR vim +set -gx VISUAL vim + +set -gx PAGER less + +# Preserve ANSI colours inside less. +set -gx LESS "-R" + +# Don't create ~/.lesshst. +set -gx LESSHISTFILE - + +# Better behaviour for systemd pagers. +set -gx SYSTEMD_LESS "FRXMK" + +# Force colour where supported. +set -gx CLICOLOR 1 +set -gx CLICOLOR_FORCE 1 + +# BAT +set -gx BAT_THEME "Monokai Extended" # Nice default `bat` theme. +set -gx MANPAGER "bat -plman" # Use `bat` as a colorizing pager for `man` \ No newline at end of file diff --git a/config.fish b/config.fish new file mode 100644 index 0000000..7fa133c --- /dev/null +++ b/config.fish @@ -0,0 +1,6 @@ +# ~/.config/fish/config.fish +# +# Interactive shell configuration is loaded automatically from conf.d/. +# Functions are autoloaded from functions/. +# +# Keep this file minimal. \ No newline at end of file