1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-18 02:20:09 +00:00

feat(gnu-utils): include ghostname if present (#10867)

This commit is contained in:
Robert Lankford 2022-04-19 06:18:05 -05:00 committed by GitHub
parent ed411d3ff1
commit 51555fc4b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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