From d0d6d208b0cc4b0000d3045108d56b8af7ad16bb Mon Sep 17 00:00:00 2001 From: Crestwave Date: Thu, 16 Apr 2020 15:00:12 +0800 Subject: [PATCH] neofetch: clean up --- neofetch | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neofetch b/neofetch index fcd2d219..050eb60d 100755 --- a/neofetch +++ b/neofetch @@ -34,6 +34,7 @@ version=7.0.0 # but do not set the 'BASH_' shell variables (osh). bash_version=${BASH_VERSINFO[0]:-5} shopt -s eval_unsafe_arith &>/dev/null + sys_locale=${LANG:-C} XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-${HOME}/.config} PATH=$PATH:/usr/xpg4/bin:/usr/sbin:/sbin:/usr/etc:/usr/libexec @@ -1589,6 +1590,7 @@ get_shell() { bash) [[ $BASH_VERSION ]] || BASH_VERSION=$("$SHELL" -c "printf %s \"\$BASH_VERSION\"") + shell+=${BASH_VERSION/-*} ;;