ish-app / ish

Linux shell for iOS
https://ish.app
Other
17.05k stars 904 forks source link

Identification info within iSH (Device, CPU, RAM, Network etc)? #1779

Open iyerusad opened 2 years ago

iyerusad commented 2 years ago

What are the identification options within iSH/can we get more identification in iSH?

What info might be useful:

Places I have checked:

Why

Find it neat to see this kind of info injected it into my .profile, example below on new shell session: image

P.S.> ❤️ Kudos on a neat project, been tweaking .dotfiles to support iSH, been a fun way to dip toe into Alpine and challenge assumptions of available tools (or even CPU instructions) and the lack thereof.

saagarjha commented 2 years ago

We can probably expose some of these (we're working on an interface to do so), yeah. But it's all manual from our side, so we'll probably start with the obvious ones first. To help us pick, what are you planning on use this for?

iyerusad commented 2 years ago

To help us pick, what are you planning on use this for?

Mostly for fun + easy visualization of what/where I'm working on in a new shell session.

The one practical use case that came up was/is limiting certain packages from being installed on iSH environment until CPU instructions are working (e.g. rely on built-in ls vs something like lsd which has some bugs within iSH at the moment).

If I had to say biggest interest would be possibly an additional /etc/ish-release file that might allow more structured parsing of iSH version etc - the current cat /proc/version looks to be a little difficult to parse sanely.

saagarjha commented 2 years ago

If I had to say biggest interest would be possibly an additional /etc/ish-release file that might allow more structured parsing of iSH version etc - the current cat /proc/version looks to be a little difficult to parse sanely.

Boy do I have the commit for you: https://github.com/ish-app/ish/commit/a2df244e81be2780d1ce800125104d24c5574090