fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
342 B8 linesraw
1# localization: skip(private)
2function __fish_is_zfs_feature_enabled \
3    -a feature pool \
4    -d "Returns 0 if the given ZFS pool feature is active or enabled for the given pool or for any pool if none specified"
5
6    type -q zpool || return
7    zpool get -H -o value $feature $pool 2>/dev/null | string match -rq '^(enabled|active)$'
8end