Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/github/pr/100'
Browse files Browse the repository at this point in the history
  • Loading branch information
mika committed May 28, 2020
2 parents 6aef288 + 4124996 commit 91376e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/zsh/zshenv
Expand Up @@ -32,6 +32,8 @@ elif [[ -x $(which hostname) ]] ; then
export HOSTNAME="$(hostname)"
elif [[ -x $(which hostnamectl) ]] ; then
export HOSTNAME="$(hostnamectl --static)"
else
export HOSTNAME="$(uname -n)"
fi

# make sure /usr/bin/id is available
Expand Down
4 changes: 4 additions & 0 deletions etc/zsh/zshrc
Expand Up @@ -843,6 +843,8 @@ function grmlcomp () {
localname=$(hostname)
elif check_com hostnamectl ; then
localname=$(hostnamectl --static)
else
localname="$(uname -n)"
fi

hosts=(
Expand Down Expand Up @@ -2522,6 +2524,8 @@ function grml_maintain_name () {
localname=$(hostname)
elif check_com hostnamectl ; then
localname=$(hostnamectl --static)
else
localname="$(uname -n)"
fi

# set hostname if not running on local machine
Expand Down

0 comments on commit 91376e3

Please sign in to comment.