mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
a step to remove __fish_sgrep per issue #2450
This commit is contained in:
parent
a3cd5bf170
commit
3463e81dda
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue