In comp.unix.shell, Kenny McCormack <
gaz...@shell.xmission.com> wrote:
> Lew Pitcher <
lew.p...@digitalfreehold.ca> wrote:
[ HOME=$(dirname $(dirname $(realpath -e $0))) proxychains-ng-socks5 ]
>> $ awk -F : -v user=$(whoami) '$1 == user {print $6;}' /etc/passwd
>> /home/lpitcher
> Or just:
>
> $ echo ~
I've just got to really wonder what's going on here. If I have set
HOME differently than the one in /etc/passwd, I probably have a good
reason for that and will not like having it reset.
I frequently use /var/tmp/$(whoami) as an alternative $HOME for testing
things, in particular testing how stuff works without all my dot files.
Or for say, testing how dot file installation from a home-config git
repo works.
I use other directories, too, but rarely. It's a handy way to have
multiple simultaneous news readers working with different .newsrc files,
for example.
Elijah
------
HOME=/var/tmp/elijah PS1=': subshell; ' $SHELL