diff options
author | Robert Lankford <robert.lankford@grafana.com> | 2022-04-19 06:18:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-19 13:18:05 +0200 |
commit | 51555fc4b3abad57784da98d920a3369f558c480 (patch) | |
tree | 095d522507c9d8c11c1870b29fbfdee32708905d | |
parent | ed411d3ff196e32844409ebe0f8b3e21b0b1c9f6 (diff) | |
download | zsh-51555fc4b3abad57784da98d920a3369f558c480.tar.gz zsh-51555fc4b3abad57784da98d920a3369f558c480.tar.bz2 zsh-51555fc4b3abad57784da98d920a3369f558c480.zip |
feat(gnu-utils): include `ghostname` if present (#10867)
-rw-r--r-- | plugins/gnu-utils/gnu-utils.plugin.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gnu-utils/gnu-utils.plugin.zsh b/plugins/gnu-utils/gnu-utils.plugin.zsh index 6ede9e3a7..9419127d8 100644 --- a/plugins/gnu-utils/gnu-utils.plugin.zsh +++ b/plugins/gnu-utils/gnu-utils.plugin.zsh @@ -35,6 +35,9 @@ __gnu_utils() { # Not part of either coreutils or findutils, installed separately. gcmds+=('gsed' 'gtar' 'gtime' 'gmake' 'ggrep') + # can be built optionally + gcmds+=('ghostname') + for gcmd in "${gcmds[@]}"; do # Do nothing if the command isn't found (( ${+commands[$gcmd]} )) || continue |