chore: always merge history in fish

This commit is contained in:
iff 2025-04-16 01:00:44 +02:00
parent 5a670924f2
commit 76d2efadb6
2 changed files with 0 additions and 4 deletions

View file

@ -692,7 +692,6 @@ pub fn shell_evaluated_commands(shell: &str, command: &str, success: bool) {
struct FishTemplate<'a> {
command: &'a str,
cd: Option<&'a str>,
success: bool,
}
#[derive(Template)]
#[template(path = "eval.nu", escape = "none")]
@ -736,7 +735,6 @@ pub fn shell_evaluated_commands(shell: &str, command: &str, success: bool) {
let template = FishTemplate {
command: &command,
cd: cd.as_deref(),
success,
};
template.render().unwrap()
}

View file

@ -1,7 +1,5 @@
builtin history append "{{ command }}";
{%- if success %}
builtin history merge;
{%- endif %}
{%- if let Some(cd) = self.cd %}
cd {{ cd }}