diff options
author | Frederik “Freso” S. Olesen <freso.dk@gmail.com> | 2016-05-27 12:19:01 +0200 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-05-27 14:56:47 -0700 |
commit | 7af9e1f5c5bfe9b295309094fb03ef27ee6ca1fd (patch) | |
tree | 7c5c75401d53ff1771761cdb8684011b158964ca /share/completions/mount.fish | |
parent | 980fb592321fc36004a4c72f430b3cd461d95281 (diff) |
Split off __fish_complete_blockdevice from mount.fish.
The __fish_complete_blockdevice function can be useful to other
completions than mount.fish, so it should live on its own so its
available to those.
Diffstat (limited to 'share/completions/mount.fish')
-rw-r--r-- | share/completions/mount.fish | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/share/completions/mount.fish b/share/completions/mount.fish index ba0d985f..9375a473 100644 --- a/share/completions/mount.fish +++ b/share/completions/mount.fish @@ -1,12 +1,4 @@ # Completions for mount -function __fish_complete_blockdevice - set -l cmd (commandline -ct) - [ "" = "$cmd" ]; and return - for f in $cmd* - [ -b $f ]; and printf "%s\t%s\n" $f "Block device" - [ -d $f ]; and printf "%s\n" $f/ - end -end complete -x -c mount -a '(__fish_complete_blockdevice)' # In case `mount UUID=` and similar also works |