fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

NahorRip support for terminfo database74d2e6d5d

master
444 B10 linesraw
1# localization: skip(private)
2function __fish_echo --description 'run the given command after the current commandline and redraw the prompt'
3    set -l line (commandline --line)
4    string >&2 repeat -N \n --count=(math (commandline | count) - $line + 1)
5    echo -n \e\[J >&2
6    $argv >&2
7    string >&2 repeat -N \n --count=(math (count (fish_prompt)) - 1)
8    string >&2 repeat -N \n --count=(math $line - 1)
9    commandline -f repaint
10end