Macgnu is a linuxify alternative.
If you want to linuxify your macOS core commands, but you may not want to install libressl, file-formula, git, openssh, perl, python, rsync, unzip, vim
because you have already installed them. Then this is for you.
The macgnu is built on linuxify:
Transform the macOS CLI into a fresh GNU/Linux CLI experience by
- installing missing GNU programs
- updating outdated GNU programs
- replacing pre-installed BSD programs with their preferred GNU implementation
Macgnu :
- won't install
libressl, file-formula, git, openssh, perl, python, rsync, unzip, vim
- won't ask if you want to change your shell to the latest bash.
After installing Awesome package manager:
awesome install shinokada/macgnu
macgnu install
After installation, create ~/.macgnu
and copy .macgnu.
Add following to your terminal configuration ~/.zshrc
or ~/.bashrc
# ~/.zshrc
. ~/.macgnu
# ~/.bashrc
. ~/.macgnu
If you are using iTerm you may need to add following to ~/.bash_profile
:
. ~/.bashrc
macgnu uninstall
Remove the following from ~/.zshrc
and ~/.bashrc
.
. ~/.macgnu
You may want to change from ZSH to Bash and vice versa:
# from ZSH to Bash
$ which -a bash
/usr/local/bin/bash
/bin/bash
$ chsh -s /usr/local/bin/bash
Changing shell for shinokada.
Password for shinokada:
# Open a new tab or restart your terminal
$ which bash
/usr/local/bin/bash
# from Bash to ZSH
$ which -a zsh
/bin/zsh
$ chsh -s /bin/zsh
Changing shell for shinokada.
Password for shinokada:
# Open a new tab or restart your terminal
- tree
- watch
- wget
- wdiff
- autoconf
- coreutils
- binutils
- diffutils
- ed
- findutils
- gawk
- gnu-indent
- gnu-sed
- gnu-tar
- gnu-which
- grep
- gzip
- screen
- bash
- emacs
- gpatch
- less
- m4
- make
- nano
- bison
- flex
MIT License
Copyright (c) 2021 Shinichi Okada
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.