I am constantly impressed by how quick you can get the job done with PowerShell. As I have mentioned before one-liners, or PowerLines as I prefer ;) are a good example, although not always practical.
So here’s my PowerLine for the day:
if (! ($env:path).contains(“C:\coding”) ) { $env:path+= “;C:\coding” }
This basically checks if the path statement contains “C:\coding”, and if not appends it to the end.
I haven’t looked at a PowerLine for removing it yet, but I suspect one line might be pushing it for that. Anyone fancy the challenge?