Questions tagged [msys]

Set of GNU utilities packaged for Windows. Questions about msysgit should use [msysgit] instead.

MSYS (or Minimal System) is a set of UNIX tools built to run on the Windows operating system. It is published by the same developers behind the MinGW developer environment.

MSYS contains the following tools in its base set:

  • bash
  • bzip2
  • GNU's coreutils (cat, wc, etc.), diffutils (diff, patch), and findutils (find, xargs)
  • file
  • gawk
  • gettext
  • grep
  • gzip
  • less
  • make
  • sed
  • tar
  • xz
92 questions
29
votes
10 answers

Change default shell on MSYS2

I want to change MSYS2's default shell from bash to zsh. I've tried chsh - not available in MSYS2. Editing /etc/passwd does nothing. It seems to be ignored. I took a look at the batch scripts in MSYS2's root directory, and bash is hardcoded in. I…
midrare
  • 445
27
votes
4 answers

Use mklink in msys

I understand that Windows later-than-or-equal-to Vista provides the mklink shell command. I'd like to make use of this from the Msys terminal. Any idea how? When I enter mklink on the msys terminal, it outputs sh: mklink: command not found. Msys…
Jellicle
  • 2,356
  • 4
  • 28
  • 32
23
votes
4 answers

How to run internal cmd command from the msys shell?

The Windows CMD utility has a number of internal commands, such as mklink. How can they be used from the msys shell ? From CMD's documentation, the /c switch can be used to execute a command and exit; but this doesn't seem to work. If I do cmd…
Mihai Rotaru
  • 2,979
21
votes
7 answers

Making `#!/usr/bin/env python` work on Windows

I use Bash on Windows, provided by MSYS. I tried to run a Python file with a shebang of #!/usr/bin/env python, but I get this error message: /usr/bin/env: python: No such file or directory What can I do to make this work? I know I can launch the…
Ram Rachum
  • 4,450
20
votes
3 answers

Is the option "Use Git and optional Unix tools from the Windows Command Prompt" dangerous?

When installing Git, it offers the option to add all of its msys *nix tools into your PATH, however it warns: Warning: This will override Windows tools like "find" and "sort". Only use this option if you understand the implications. My questions…
20
votes
5 answers

"git mv *" returns "bad source" in Powershell

When inside a git repository in Powershell or CMD, issuing git mv * whatever will return fatal: bad source, source=*, destination=whatever This works fine when using MSYS (Git Bash).
Ezequiel
  • 302
19
votes
4 answers

MinGW installer not working with proxy

Situation I want to install minGW and msys on a work pc, but I'm behind a proxy. The proxy settings are configured to auto detect in both internet explorer and firefox. The proxy is a http proxy on port 80 that requires authentification. I also have…
youR.Fate
  • 564
13
votes
7 answers

Start MSYS in current folder

I have MinGW/MSYS on Windows, and can't figure how to start MSYS shell in folder I'm working in. For example, in Windows console I'm working in folder c:\temp and if I call MSYS (msys.bat) it opens new console window in some fixed location,…
zetah
  • 704
13
votes
3 answers

Install GCC in Git for Windows bash environment

I have Git for Windows installed on a Windows 7 machine (no, sadly I can't switch to W10 on this particular machine). This comes with a bash environment that uses MinGW-64 but only includes some binaries. I'd like to add more, such as GCC. It seems…
Toby
  • 876
11
votes
2 answers

Is there a way to run git within Powershell?

Is there a way to run git within Powershell? I have a Windows 7 box with msysgit. I'd like to have a single shell to also run all my git commands as well as play around with Powershell scripting.
spong
  • 2,047
11
votes
3 answers

How can I change my MinGW/MSYS + mintty home directory?

I use mintty as my console emulator for MinGW/MSYS. Recently (I'm not certain exactly when), the home directory used by this combination changed from my Windows user folder (/c/Users//) to /home//, which is causing minor havoc for me. How…
Ben Blank
  • 1,094
10
votes
3 answers

How to make MSYS (MSYS2) portable

On Windows, I have a C:\msys32 folder (containing what I believe to be a MSYS2 install) created for/by an ESP32 development environment (located in ~/esp). The MSYS home folder includes my Windows username. Now when I copy that install to another…
10
votes
2 answers

msys2 create a sym link into windows folder location

I have just started to use msys2. I wanted to make a sym link to a folder on my d:. I can access it like this: cd /d/mytestfolder/ I tried: When I do ln -s /d/mytestfolder/ testfolder - this seems to be working, but takes a long time, then I…
code_fodder
  • 1,687
9
votes
1 answer

How do I open the current directory in mingw's msys in file explorer?

Assume I'm in: $ pwd /home/foo Now I want to open up this /home/foo in Windows 10's file explorer. How do I do this?
Bjorn
  • 278
8
votes
1 answer

How can I use mintty as the terminal emulator for MinGW/MSYS?

The default "terminal emulator" in Windows leaves a lot to be desired. I see mintty recommended as a lightweight alternative with specific support for MinGW/MSYS, but not much information on how to actually use it as such. How can I instruct…
Ben Blank
  • 1,094
1
2 3 4 5 6 7