projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
341fb51
)
remove dependency of hostname[ctl]
author
Bhoppi Chaw
<bhoppi#outlook,com>
Mon, 23 Aug 2021 03:09:15 +0000
(11:09 +0800)
committer
Bhoppi Chaw
<bhoppi#outlook,com>
Mon, 23 Aug 2021 03:09:15 +0000
(11:09 +0800)
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
4ddd4f9
..
a992e3f
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-901,14
+901,7
@@
function grmlcomp () {
fi
local localname
- if check_com hostname ; then
- localname=$(hostname)
- elif check_com hostnamectl ; then
- localname=$(hostnamectl --static)
- else
- localname="$(uname -n)"
- fi
-
+ localname="$(uname -n)"
hosts=(
"${localname}"
"$_ssh_config_hosts[@]"