Files
inshellisense/shell/shellIntegration.fish
T
Chapman Pendery 8f75afc2f1 fix: add shell integration support without requiring user installation (#101)
* fix: add shell integration support without requiring user installation

Signed-off-by: Chapman Pendery <cpendery@vt.edu>

* fix: style lints

Signed-off-by: Chapman Pendery <cpendery@vt.edu>

* fix: failing tests

Signed-off-by: Chapman Pendery <cpendery@vt.edu>

---------

Signed-off-by: Chapman Pendery <cpendery@vt.edu>
2023-12-05 12:24:48 -08:00

6 lines
369 B
Fish

function __is_copy_function; functions $argv[1] | sed "s/^function $argv[1]/function $argv[2]/" | source; end
function __is_prompt_start; printf '\e]6973;PS\a'; end
function __is_prompt_end; printf '\e]6973;PE\a'; end
__is_copy_function fish_prompt is_user_prompt
function fish_prompt; printf (__is_prompt_start); printf (is_user_prompt); printf (__is_prompt_end); end