From 99de50c76caeb1d73f060fbe30e555b86808136c Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 18 Mar 2022 15:32:02 +0100 Subject: [PATCH] zsh: Clean up some variables --- .config/zsh/.zprofile | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index e4c6892..cad8775 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -106,27 +106,24 @@ fi # Use ISO 8601 date & time. if command -v locale > /dev/null; then - locale -a | grep -q en_DK && export LC_TIME="en_DK.UTF-8" + locale -a | grep -q en_DK && export LC_TIME="en_DK.utf8" fi export CCACHE_DIR="/var/cache/ccache" +# Set terminal +if command -v alacritty > /dev/null; then + export TERMINAL="alacritty" +elif command -v xfce4-terminal > /dev/null; then + export TERMINAL="xfce4-terminal" +elif command -v urxvt > /dev/null; then + export TERMINAL="urxvt" +elif command -v xterm > /dev/null; then + export TERMINAL="xterm" +fi + # Host specific settings. case $(hostname) in - ventiloplattform|sprotznog) - if command -v alacritty > /dev/null; then - export TERMINAL="alacritty" - elif command -v xfce4-terminal > /dev/null; then - export TERMINAL="xfce4-terminal" - elif command -v urxvt > /dev/null; then - export TERMINAL="urxvt" - elif command -v xterm > /dev/null; then - export TERMINAL="xterm" - fi - export SSH_ASKPASS="/usr/bin/ssh-askpass-fullscreen" - export CFLAGS="-march=native -pipe" - export CXXFLAGS="${CFLAGS}" - ;; schnibble | gaffer | localhost) export GIT_SSH_COMMAND="ssha" # Termux command for ssh with key-add. export CPATH="/data/data/com.termux/files/usr/local/include"