mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +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> {
|
||||
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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
builtin history append "{{ command }}";
|
||||
{%- if success %}
|
||||
builtin history merge;
|
||||
{%- endif %}
|
||||
|
||||
{%- if let Some(cd) = self.cd %}
|
||||
cd {{ cd }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue