a step to remove __fish_sgrep per issue #2450
This commit is contained in:
parent
a3cd5bf170
commit
3463e81dda
@ -7,6 +7,6 @@ function __fish_print_mounted --description 'Print mounted devices'
|
||||
# and tabs because of descriptions
|
||||
string replace -r '\S+ (\S+) .*' '$1' </etc/mtab | string replace -a "\040" " " | string replace -a "\011" \t | string replace -a "\012" \n | string replace -a "\\\\" "\\"
|
||||
else
|
||||
mount | cut -d " " -f 1-3 | tr " " \n | sed -e "s/[0-9\.]*:\//\//" | __fish_sgrep "^/"
|
||||
mount | string replace -r '^(\S+) \S+ (\S+) .*' '$1\n$2' | string replace -r '[\d.]*:/' '/' | string match '/*'
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user