diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2016-03-06 15:28:54 +0100 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2016-03-09 13:07:04 +0100 |
commit | 6288f89bf95273cbce8437cfd6466cf8fc80850b (patch) | |
tree | bd92094016d181c7f9b05e6fd0e6f6b6c1f9d7d6 /etc | |
parent | 6a16bdb808b02977cc99f84b4adae420f99019d2 (diff) |
Move code in etc/config.fish to share/config.fish
instead add a bit of information on how fish's configuration works for
the admin to etc/config.fish.
This means that fish is fully functional without /etc, which might be nice for "stateless" systems.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/config.fish | 44 |
1 files changed, 14 insertions, 30 deletions
diff --git a/etc/config.fish b/etc/config.fish index f4126d36..9be6f072 100644 --- a/etc/config.fish +++ b/etc/config.fish @@ -1,30 +1,14 @@ -# -# Init file for fish -# - -# -# Some things should only be done for login terminals -# - -if status --is-login - - # Check for i18n information in - # /etc/sysconfig/i18n - - if test -f /etc/sysconfig/i18n - eval (cat /etc/sysconfig/i18n |sed -ne 's/^\([a-zA-Z]*\)=\(.*\)$/set -gx \1 \2;/p') - end - - # - # Put linux consoles in unicode mode. - # - - if test "$TERM" = linux - if expr "$LANG" : ".*\.[Uu][Tt][Ff].*" >/dev/null - if which unicode_start >/dev/null - unicode_start - end - end - end -end - +# Put system-wide fish configuration entries here +# or in .fish files in conf.d/ +# Files in conf.d can be overridden by the user +# by files with the same name in $XDG_CONFIG_HOME/fish/conf.d + +# This file is run by all fish instances. +# To include configuration only for login shells, use +# if status --is-login +# ... +# end +# To include configuration only for interactive shells, use +# if status --is-interactiv +# ... +# end |