yadm-dev / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
5.15k stars 177 forks source link

Windows support #363

Closed Lite5h4dow closed 2 years ago

Lite5h4dow commented 3 years ago

Is your feature request related to a problem? Please describe.

no windows support

Additional context

Any chance for Windows support?

rasa commented 3 years ago

I use it in Windows. It works in WSL, Cygwin, Msys2, Mingw, and git-bash. It would probably work in any bash environment, as it's very platform-agnostic.

Lite5h4dow commented 3 years ago

@rasa i mean actual windows, not linux on windows.

rasa commented 3 years ago

@Lite5h4dow If you mean running yadm under Windows's CMD command interpreter, then it would not be the right tool for you, as it requires bash, which requires an environment like WSL or Cygwin to run in. It also requires a few standard *nix utilities, such as awk. Personally, I avoid using CMD, as its scripting functionality pales in comparison to bash.

Lite5h4dow commented 3 years ago

powershell is the default now for this kind of thing. it has most if not all of the features of bash now and is more than capable of functioning as the execution shell of choice for windows.

xenoterracide commented 3 years ago

the problem here is going to be git, you have to have a functioning git for yadm to work which means you have to have that unix stuff installed anyways. Now it might be possible to look into how docker/git are exporting their commands to the shell so you could just run yadm from powershell without having to be in bash.

sleepntsheep commented 3 years ago

@xenoterracide git work completely fine on windows

xenoterracide commented 3 years ago

@xenoterracide git work completely fine on windows

I think you're missing the context of the previous comments here about PowerShell and "Linux on Windows". Git for Windows very much uses msys. Git will not operate without a Unix environment.

rasa commented 3 years ago

In Windows, I sometimes use this script, named yadm.cmd:

set "GIT_DIR=%USERPROFILE%\.local\share\yadm\repo.git"
where /q git || set "PATH=%ProgramFiles%\Git\usr\bin;%PATH%"
git %*

and it works great. A similar thing could be done in Powershell.

github-actions[bot] commented 2 years ago

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 years ago

This issue was closed because it has been labeled as stale for 7 days with no activity.

airtonix commented 2 years ago

@xenoterracide git work completely fine on windows

I think you're missing the context of the previous comments here about PowerShell and "Linux on Windows". Git for Windows very much uses msys. Git will not operate without a Unix environment.

It still works fine in Powershell.

ferdinandyb commented 1 year ago

Hey guys, I know this is a stale issue, but if someone would come up with easy instructions on how to leverage git-bash from powershell to use yadm that would be great :)

jyfzh commented 1 year ago

i think rewrite yadm in powershell is a way. i have done a little. here is repository: https://github.com/jyf-111/PSYadm

Install-Script -Name yadm
# then use yadm
yadm
yadm init
yadm clone <url>
...
o6uoq commented 7 months ago

Could yadm work with git-bash and Windows to install both Linux/Bash based configurations as well as run installations for things like chocolatey ?