select / term-cheat

Your terminal cheat sheet. ⌨️
MIT License
10 stars 0 forks source link

Ideas for features #1

Open select opened 5 years ago

select commented 5 years ago

https://forum.snapcraft.io/t/classic-confinement-for-term-cheat/9832/6 abitrolly wrote: In the meanwhile it might be possible for it to write commands as scripts to $HOME/bin/. Like, for example mark with space and then hit ‘s’ to produce “$HOME/bin/list open ports.sh” for example.

I am not sure if it is possible to create scripts or shell aliases that could be invoked like this.

$ list open ports
# netstat -tulpn
Active Internet connections (only servers)
...

That would be awesome. term-cheat could also print apt command with dependencies that need to be installed for the given OS for the selection.

select commented 5 years ago

term-cheat could also print apt command with dependencies that need to be installed for the given OS for the selection.

Yes I had the idea too I think this is a great idea. I will add a field where the install command can be put. I would create different start files for different operating systems with customized install comands to not bloat the ui too much

select commented 5 years ago

I am not sure if it is possible to create scripts or shell aliases that could be invoked like this.

It would be possible to create scripts like that but having scripts with space in the name do not make much sense in my opinion. I would rather go for an option like "create alias" that then asks for an alias name which will then append an alias line to a .alias file. This file you can then source from your .bashrc or .zshrc file or whatever shell you use.