![]() You don’t use this shell to build software. Function to check MSys2 presence (I need it to use the same configs on other systems) nfig first command that would set required environment variables for fish to work properly if fish is run as a login shell. The problem is that git bash is a lightweight version of MSYS2 which does not include pacman as a package management, used to install fish. To install fish shell on windows the options are: Cygwin WSL MSYS2 Since git bash is based on MSYS2 it seems a good fit to install fish. ![]() MSys2 is a system that gives you 3 different shell environments: A system maintenance shell (MSys2) If you want to install packages or tools, you use this shell. Using fish shell with git bash on windows. I like MSys2, but it’s easy to misunderstand what it is doing for you. To run a Bash shell script in MSYS2 without showing a window, you should right-click on your Desktop or somewhere else in Windows Explorer, select 'New', select 'Shortcut', and then enter something like this for the shortcut target: C:msys64usrbinmintty. # The SSH service should start automatically when Windows is rebooted. I switched from Cygwin to MSys2 a few years ago. #!/bin/sh # msys2-sshd-setup.sh - configure sshd on MSYS2 and run it as a Windows service # Replaces ssh-host-config # Adapted from by Sam Hocevar # Adapted from by David Macek # Prerequisites: # - a 64-bit installation of MSYS2 itself: # - some packages: pacman -S openssh cygrunsrv mingw-w64-x86_64-editrights # Gotchas: # - the log file will be /var/log/msys2_sshd.log # - if you get error “sshd: fatal: seteuid XXX : No such device or address” # in the logs, try “passwd -R” (with admin privileges) # - if you get error “chown(/dev/pty1, XXX, YYY) failed: Invalid argument” # in the logs, make sure your account and group names are detectable (see # `id`) issues are often caused by having /etc/ " \ > /etc/passwdįi # Finally, register service with cygrunsrv and start it #Ĭygrunsrv -I msys2_sshd -d "MSYS2 sshd" -p /usr/bin/sshd.exe -a "-D -e" -y tcpip Goal: Add MSYS2/MinGW64 BASH as an optional shell to an existing OpenSSH server with automation purposes in mind. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |