diff options
author | Clément Martinez <clementmartinezdev@gmail.com> | 2016-06-08 08:32:50 +0200 |
---|---|---|
committer | Clément Martinez <clementmartinezdev@gmail.com> | 2016-06-08 08:32:50 +0200 |
commit | f37dafdf528bd2146a4c214b3ca5d14417310e6a (patch) | |
tree | e0c1f85e3e3500964d91b8ba9680896eea072496 | |
parent | c84137aec8043976a9c8deaf5206618abf0bef80 (diff) |
Clean udisksctl
-rw-r--r-- | share/completions/udisksctl.fish | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/share/completions/udisksctl.fish b/share/completions/udisksctl.fish index f013b8e3..1b3376c9 100644 --- a/share/completions/udisksctl.fish +++ b/share/completions/udisksctl.fish @@ -4,7 +4,9 @@ set __fish_mount_opts async\tUse\ asynchronous\ I/O atime\tUpdate\ time\ on\ eac function __fish_print_mounted_blockdevice - grep "^/.*" /proc/mounts | cut -d " " -f 1 + if test -r /proc/mounts + string match -r "^/[^ ]*" < /proc/mounts + end end complete -f -c udisksctl -n "__fish_seen_subcommand_from $cmds" -l help -d "Shows help" |