Save shell commands

  • It would be nice if there were a way to save shell commands in the GUI Diagnostics/Command Prompt page, then just click a link to run the command.

  • Rebel Alliance Developer Netgate

    There is JS to save them in the current session (that's what the little back/forward buttons are below the box) but to save them long-term would require a lot more work. Your browser's autocomplete/form fill may already be doing the job for you. Firefox usually remembers mine.

  • I also use autocomplete, but I was on a different computer and couldn't remember one of them.

  • Rebel Alliance Developer Netgate

    Firefox and Chrome can both sync autocomplete data :-)

    Really though, making it store those on the firewall would be impractical (especially as the command list grows over time). It could be done, but I'm not sure the benefits outweigh the extra disk writes, storage use, code to store/load the commands, potential security issues, etc.

Log in to reply