plexus / chemacs

Emacs profile switcher
653 stars 44 forks source link

PowerShell port of install.sh #24

Closed jfhbrook closed 4 years ago

jfhbrook commented 4 years ago

Howdy!

In an effort to get my development environment in a better spot on Windows, I whipped up this PowerShell script for installing chemacs.

As you can see it's a little hairy especially as compared to the shell script. Windows requires admin privileges to make symlinks for reasons I don't fully understand, so I took the more complicated strategy of using hashing to detect file changes - which, you know, exciting.

The script works on my machine tho 😄

Anyway: I totally get it if you don't want to maintain a PowerShell script that does something fundamentally different than the shell script, but since I bothered to write it at all I figured I'd send it upstream.

Cheers!

jfhbrook commented 4 years ago

I actually realized that in all of the hullabaloo over getting anything interesting to work in powershell that I misread what install.sh does and copied the whole directory rather than just the one file *sad trombone*

I'm gonna close this until I have it actually working

jfhbrook commented 4 years ago

Got it XD Code is as expected much simpler 🙃

plexus commented 4 years ago

I know zero powershell so I'll take your word for it. People can always improve it if they see an opportunity to do so.