diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2023-07-08 12:03:19 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2023-07-08 12:03:19 +0100 |
| commit | ba07f6a54ffc59cf315282ebf4c9358f4a4e525c (patch) | |
| tree | 2c24d24acdd2f94afcbd21c5435f885e0c81e907 /zsh/env | |
| parent | 4dc8f2713778969f35e8a0bd0baca738afd82e5c (diff) | |
zsh: Add HOST_SHORT to refer to the machine name
Diffstat (limited to 'zsh/env')
| -rw-r--r-- | zsh/env | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -10,6 +10,7 @@ source_if_exists() { [[ ${HOST} =~ \\. ]] && export DOMAIN=${(j:.:)${(s:.:)HOST}[-2,-1]:l} export HOST=${HOST:l} +export HOST_SHORT=${${(%):-%m}:l} case ${OSTYPE} in darwin*) export UNAME=darwin ;; linux*) export UNAME=linux ;; |
