diff options
author | David Runge <david.runge@native-instruments.de> | 2018-11-24 14:19:31 +0100 |
---|---|---|
committer | David Runge <david.runge@native-instruments.de> | 2018-11-24 14:19:31 +0100 |
commit | 31895b1b525ab673becdb10c7a421f71510f6354 (patch) | |
tree | 45e0db48325961dc4b2f80d75c8972dcbe341f76 | |
parent | 085e2b8c5aac532a2b40472ec781784084894c7f (diff) | |
download | dotfiles-31895b1b525ab673becdb10c7a421f71510f6354.tar.gz dotfiles-31895b1b525ab673becdb10c7a421f71510f6354.tar.bz2 dotfiles-31895b1b525ab673becdb10c7a421f71510f6354.tar.xz dotfiles-31895b1b525ab673becdb10c7a421f71510f6354.zip |
.zsh.after/export.zsh: Expanding check for and setting of locale settings to very special whackOS settings. Exporting pipenv settings to expose them globally. Exporting TTY to GPG_TTY instead of calling tty everytime.
-rw-r--r-- | .zsh.after/export.zsh | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh index 921401d..45dbe9b 100644 --- a/.zsh.after/export.zsh +++ b/.zsh.after/export.zsh @@ -9,15 +9,26 @@ fi available_locale=$(locale -a|tr '\n' ' ') -if test "${available_locale#*en_DK.utf8}" != $available_locale; then +if [ "${available_locale#*en_DK.utf8}" != "$available_locale" ]; then + export LC_TIME="en_DK.UTF-8" +elif [ "${available_locale#*en_DK.UTF-8}" != "$available_locale" ]; then export LC_TIME="en_DK.UTF-8" fi -if test "${available_locale#*de_DE.utf8}" != $available_locale; then +if [ "${available_locale#*de_DE.utf8}" != "$available_locale" ]; then + export LC_MONETARY="de_DE.UTF-8" +elif [ "${available_locale#*de_DE.UTF-8}" != "$available_locale" ]; then export LC_MONETARY="de_DE.UTF-8" fi -if test "${available_locale#*en_US.utf8}" != $available_locale; then +if [ "${available_locale#*en_US.utf8}" != "$available_locale" ]; then + export LANG="en_US.UTF-8" +elif [ "${available_locale#*en_US.UTF-8}" != "$available_locale" ]; then export LANG="en_US.UTF-8" fi +if [ "${available_locale#*en_US.utf8}" != "$available_locale" ] ; then + export LC_CTYPE="en_US.UTF-8" +elif [ "${available_locale#*en_US.UTF-8}" != "$available_locale" ]; then + export LC_CTYPE="en_US.UTF-8" +fi # keyboard exports for sway export XKB_DEFAULT_LAYOUT=de @@ -50,8 +61,18 @@ export _JAVA_OPTIONS='-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndF # non-reparenting windows export _JAVA_AWT_WM_NONREPARENTING=1 +# pipenv environment variables: +# - disabling fancy shell stuff +# - creating virtualenv within each project +# - moving cache dir to build volume +export PIPENV_NOSPIN="true" +export PIPENV_COLORBLIND="true" +export PIPENV_HIDE_EMOJIS="true" +export PIPENV_VENV_IN_PROJECT="true" +#export PIPENV_CACHE_DIR="$HOME/.cache/pipenv" + # GnuPG -export GPG_TTY=$(tty) +export GPG_TTY=$TTY export GPG_AGENT_INFO="" # ssh-agent |