mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 15:37:24 +00:00
Stringify reading nfs in print_hostnames
This commit is contained in:
parent
a5f5e6c1ef
commit
94c12d84e2
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ function __fish_print_hostnames -d "Print a list of known hostnames"
|
|||
end
|
||||
# Print nfs servers from /etc/fstab
|
||||
if test -r /etc/fstab
|
||||
__fish_sgrep </etc/fstab "^\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\|[a-zA-Z.]*\):"|cut -d : -f 1
|
||||
string match -r '^\s*[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3]:|[a-zA-Z\.]*:' </etc/fstab | string replace -r ':.*' ''
|
||||
end
|
||||
|
||||
# Print hosts with known ssh keys
|
||||
|
|
Loading…
Reference in a new issue