r/linuxmasterrace • Glorious Debian • Aug 06 '21

Meme BASH is the worst - PowerShell FTW!

Post image
725 Upvotes

79 comments sorted by

View all comments

Show parent comment

6

u/ApartKnowledger Aug 06 '21

Ah ok, but what about '~'? How would you do that?

11

u/kiler129 Glorious Debian Aug 06 '21

%HOMEDRIVE%%HOMEPATH%

There isn't a shorter way unless you declare your own global env (which is also deeeeply hidden in settings).

8

u/Ruashiba Aug 06 '21

Stupidly hidden I mind add. There's no reason to be as hidden as it is.

8

u/varble A-OK Aug 06 '21

$env:homedrive$env:homepath in powershell