]> Sergey Matveev's repositories - stargrave-blog.git/commitdiff
FreeBSD sysctl и дополнения для zsh
authorSergey Matveev <stargrave@stargrave.org>
Sat, 22 Feb 2025 11:50:02 +0000 (14:50 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 22 Feb 2025 11:50:02 +0000 (14:50 +0300)
man sysctl имеет примеры для дополнения значений sysctl-а для zsh:

     -N      Show only variable names, not their values.  This is particularly
             useful with shells that offer programmable completion.  To enable
             completion of variable names in zsh(1) (ports/shells/zsh), use
             the following code:

                   listsysctls () { set -A reply $(sysctl -AN ${1%.*}) }
                   compctl -K listsysctls sysctl

             To enable completion of variable names in tcsh(1), use:

                   complete sysctl 'n/*/`sysctl -Na`/'

Эта ОС не перестаёт приятно удивлять и радовать такими мелочами и
дружелюбностью к пользователю.


No differences found