Skip to content

Do output bash/zsh commands to history #144

@kmactavish

Description

@kmactavish

This issue references #46 as a regression.

Unfortunately, I'm on the other side of the fence. I want the bash history to be populated, in case the command fails and I need to run it again. Omitting the space in the configuration file results in a yaml error:

yaml.scanner.ScannerError: while scanning a simple key
  in "<string>", line 16, column 5:
        -echo "test" ... 
        ^

Right now as a workaround, I'm appending to the history, and running the last command:

- history -s "echo \"Run this command\"" && !!

but this is clearly not ideal.

My suggestion is that if you want to suppress the history, explicitly put the space:

- ' echo "Run this command"'

and restore the previous behaviour which preserved both behaviours.

Alternatively, an option could be added that explicitly turns on bash history.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions