projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vimrc: support vim-tiny and older versions of vim
[grml-etc-core.git]
/
etc
/
zsh
/
zshrc
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
43cda0c
..
6360f5f
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-843,6
+843,8
@@
function grmlcomp () {
localname=$(hostname)
elif check_com hostnamectl ; then
localname=$(hostnamectl --static)
localname=$(hostname)
elif check_com hostnamectl ; then
localname=$(hostnamectl --static)
+ else
+ localname="$(uname -n)"
fi
hosts=(
fi
hosts=(
@@
-2522,6
+2524,8
@@
function grml_maintain_name () {
localname=$(hostname)
elif check_com hostnamectl ; then
localname=$(hostnamectl --static)
localname=$(hostname)
elif check_com hostnamectl ; then
localname=$(hostnamectl --static)
+ else
+ localname="$(uname -n)"
fi
# set hostname if not running on local machine
fi
# set hostname if not running on local machine