mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 07:35:10 +01:00
chore: always merge history in fish
This commit is contained in:
parent
5a670924f2
commit
76d2efadb6
2 changed files with 0 additions and 4 deletions
|
|
@ -692,7 +692,6 @@ pub fn shell_evaluated_commands(shell: &str, command: &str, success: bool) {
|
||||||
struct FishTemplate<'a> {
|
struct FishTemplate<'a> {
|
||||||
command: &'a str,
|
command: &'a str,
|
||||||
cd: Option<&'a str>,
|
cd: Option<&'a str>,
|
||||||
success: bool,
|
|
||||||
}
|
}
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
#[template(path = "eval.nu", escape = "none")]
|
#[template(path = "eval.nu", escape = "none")]
|
||||||
|
|
@ -736,7 +735,6 @@ pub fn shell_evaluated_commands(shell: &str, command: &str, success: bool) {
|
||||||
let template = FishTemplate {
|
let template = FishTemplate {
|
||||||
command: &command,
|
command: &command,
|
||||||
cd: cd.as_deref(),
|
cd: cd.as_deref(),
|
||||||
success,
|
|
||||||
};
|
};
|
||||||
template.render().unwrap()
|
template.render().unwrap()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
builtin history append "{{ command }}";
|
builtin history append "{{ command }}";
|
||||||
{%- if success %}
|
|
||||||
builtin history merge;
|
builtin history merge;
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
{%- if let Some(cd) = self.cd %}
|
{%- if let Some(cd) = self.cd %}
|
||||||
cd {{ cd }}
|
cd {{ cd }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue