misc: Remove all instances of export. They're pointless.

This commit is contained in:
Dylan Araps 2018-05-21 10:14:35 +10:00
parent 4895ed33b1
commit 6bf7f9452e

View file

@ -26,27 +26,21 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE. # SOFTWARE.
# Neofetch version.
version="4.0.3" version="4.0.3"
bash_version="${BASH_VERSION/.*}" bash_version="${BASH_VERSION/.*}"
sys_locale="${LANG:-C}" sys_locale="${LANG:-C}"
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}" XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
PATH="/usr/xpg4/bin:/usr/sbin:/sbin:/usr/etc:/usr/libexec:${PATH}"
# Speed up script by not using unicode. # Speed up script by not using unicode.
export LC_ALL=C LC_ALL=C
export LANG=C LANG=C
# Add more paths to $PATH.
export PATH="/usr/xpg4/bin:/usr/sbin:/sbin:/usr/etc:/usr/libexec:${PATH}"
# Fix issues with gsettings. # Fix issues with gsettings.
export GIO_EXTRA_MODULES="/usr/lib/x86_64-linux-gnu/gio/modules/" GIO_EXTRA_MODULES="/usr/lib/x86_64-linux-gnu/gio/modules/"
# Set no case match.
shopt -s nocasematch shopt -s nocasematch
# Reset colors and bold.
reset="\e[0m" reset="\e[0m"
# Neofetch default config. # Neofetch default config.
@ -3495,7 +3489,7 @@ get_ascii() {
fi fi
# Set locale to get correct padding. # Set locale to get correct padding.
export LC_ALL="$sys_locale" LC_ALL="$sys_locale"
# Turn file into variable. # Turn file into variable.
while IFS=$'\n' read -r line; do while IFS=$'\n' read -r line; do
@ -3524,7 +3518,7 @@ get_ascii() {
text_padding="$((ascii_length + gap))" text_padding="$((ascii_length + gap))"
printf "%b" "$print" printf "%b" "$print"
export LC_ALL=C LC_ALL=C
} }
get_image_source() { get_image_source() {