mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 08:03:19 +00:00
fix(terminal): use fish's hostname variable for OSC 7 (#4050)
The fish prompt hook ran the external hostname command to build the OSC 7 working-directory URL, so fish printed an error at every prompt where that command is unavailable. It now uses fish's built-in \$hostname variable. Closes #4046 Co-authored-by: cubelitblade <135247075+cubelitblade@users.noreply.github.com>
This commit is contained in:
co-authored by
cubelitblade
parent
c1782f01eb
commit
c1f3debbb9
@@ -83,7 +83,7 @@ esac
|
||||
"#;
|
||||
|
||||
const FISH_INIT: &str = concat!(
|
||||
r#"function __openidea_osc7 --on-event fish_prompt; printf '\e]133;D;%s\a\e]7;file://%s%s\a' "$status" (hostname) $PWD; end; "#,
|
||||
r#"function __openidea_osc7 --on-event fish_prompt; printf '\e]133;D;%s\a\e]7;file://%s%s\a' "$status" "$hostname" $PWD; end; "#,
|
||||
r#"function __openidea_preexec --on-event fish_preexec; printf '\e]133;C\a'; end"#,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user