- Nov
- 344
- 10
I move around my laptop quite a bit, connecting it to several networks (work, home, mistress' home :p, etc.), and each time it gets assigned a different IP address.
My current prompt says somewhere ... $u@%_ip ... , but the problem with this is that %_ip gets evaluated only at the window startup, and if I move to a new network, the old IP address will still be there. A workaround is to simply close that TCC window and open another one, but there are many times where this is undesirable.
I'd like to have the new special command $i available for the prompt: it will display the current IP address(es), just like the %_ip variable does.
Thanks.
(It's been a while since I last participated - I apologize if this has been flogged to death before)
My current prompt says somewhere ... $u@%_ip ... , but the problem with this is that %_ip gets evaluated only at the window startup, and if I move to a new network, the old IP address will still be there. A workaround is to simply close that TCC window and open another one, but there are many times where this is undesirable.
I'd like to have the new special command $i available for the prompt: it will display the current IP address(es), just like the %_ip variable does.
Thanks.
(It's been a while since I last participated - I apologize if this has been flogged to death before)