screenFetch icon indicating copy to clipboard operation
screenFetch copied to clipboard

Display local and public IP address

Open TheHellSite opened this issue 5 years ago • 3 comments

Hello,

is it somehow possible to add custom lines to the config? I would like to check my public and local IP at the startup of my shell.

lip="ip -f inet addr show ens18 | grep -Po 'inet \K[\d.]+'" pip="curl ifconfig.me/ip"

IP: ${lip} (local) - ${pip} (public)

TheHellSite avatar Nov 22 '20 13:11 TheHellSite

You should be able to add your stuff to the "custom lines" part of the script: https://github.com/KittyKatt/screenFetch/blob/master/screenfetch-dev#L198

darealshinji avatar Nov 23 '20 05:11 darealshinji

But then I would have to recompile my own version of screenfetch, am I right?

TheHellSite avatar Nov 23 '20 10:11 TheHellSite

It's a script, there's nothing to compile.

darealshinji avatar Nov 23 '20 13:11 darealshinji