Skip to content

Commit 44f29da

Browse files
committed
feat(chflags): complete "-x" only for FreeBSD
1 parent 2d50f40 commit 44f29da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

completions/chflags

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ _comp_cmd_chflags()
1313
for w in "${words[@]}"; do
1414
[[ $w == -R ]] && opts="-H -L -P" && break
1515
done
16-
_comp_compgen -- -W '-f -h -v -x -R $opts'
16+
[[ $OSTYPE == *freebsd* ]] && opts="$opts -x"
17+
_comp_compgen -- -W '-f -h -v -R $opts'
1718
else
1819
local REPLY
1920
# The first argument is a list of flags; the rest are filedir.

0 commit comments

Comments
 (0)