Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ideas for features #1

Open
select opened this issue Feb 7, 2019 · 2 comments
Open

Ideas for features #1

select opened this issue Feb 7, 2019 · 2 comments

Comments

@select
Copy link
Owner

select commented Feb 7, 2019

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
Copy link
Owner Author

select commented Feb 7, 2019

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
Copy link
Owner Author

select commented Feb 7, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant