How to add man and zip to "git bash" installation on Windows
7-zip can be added to gitbash
as follows:
- Install 7-zip on windows.
- add 7-zip folder (
C:\Program Files\7-Zip
) toPATH
Ongitbash
exp:export PATH=$PATH:"C:\Program Files\7-Zip"
(temporary)
On Windows, addingPATH
like image below (permanent)
- duplicate a copy of
7z.exe
to bezip.exe
- reopen
gitbash
again. done!
This way, it works on my laptop.
If you skip step 3. you still can call zip command as 7z
instead of zip
Conclusion: Gitbash
is running base on windows Path
, I think you can run any command that you have added to your Windows PATH
.
Here's another, slightly different, set of instructions to install zip
for git bash
on windows:
- Navigate to this sourceforge page
- Download
zip-3.0-bin.zip
- In the zipped file, in the
bin
folder, find the filezip.exe
. - Extract the file
zip.exe
to yourmingw64
bin folder (for me:C:\Program Files\Git\mingw64\bin
) - Navigate to to this sourceforge page
- Download
bzip2-1.0.5-bin.zip
- In the zipped file, in the
bin
folder, find the filebzip2.dll
- Extract
bzip2.dll
to yourmingw64\bin
folder (same folder as above:C:\Program Files\Git\mingw64\bin
)