diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2020-01-06 21:50:13 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2020-01-06 21:53:08 +0000 |
| commit | 4b32447683beeea38444b198a384a6adf99721cf (patch) | |
| tree | 895dda730e2c78e5796e64f904814222f0772efa | |
| parent | 8ec6e87077dbed6f975d95bbd27374f9dde9e4eb (diff) | |
Export DOMAIN on both Linux and macOS
Also, use -s with cut so that DOMAIN will be empty if no domain is set.
| -rw-r--r-- | dotfiles-darwin/zsh/env | 1 | ||||
| -rw-r--r-- | zsh/env | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/dotfiles-darwin/zsh/env b/dotfiles-darwin/zsh/env index d239818..3bcf9ea 100644 --- a/dotfiles-darwin/zsh/env +++ b/dotfiles-darwin/zsh/env @@ -1,6 +1,5 @@ # -*- mode: shell-script -*- -export DOMAIN=$(cut -d. -f2- <<<${HOST}) export GOPATH=~/Go export XDG_CACHE_HOME=~/Library/Caches export XDG_CONFIG_HOME=~/Library/Preferences @@ -5,6 +5,7 @@ source_if_exists() { [[ -f ${f:A:h:h}/$1 ]] && . ${f:A:h:h}/$1 || return 0 } +export DOMAIN=$(cut -d. -f2- -s <<<${HOST}) export UNAME=$(uname) export LC_ALL=en_US.UTF-8 |
