Created
September 1, 2017 20:11
-
-
Save inoperable/dd64d4c780889e0cf6e1f99bab5f55ff to your computer and use it in GitHub Desktop.
install updated gnu versions of coreutils and shell commands from this decade (and not previous century)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# macOS coreutils are partially from last century and many usefull stuff isn't working in macOS term when | |
# pasted from yet another up-to-date unix system (which uses recent gnu versions) | |
# orginal from https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ | |
# tap'em all | |
brew tap homebrew/boneyard | |
brew tap homebrew/bundle | |
brew tap homebrew/core | |
brew tap homebrew/services | |
# untap deprecated taps | |
brew untap homebrew/versions | |
brew untap homebrew/dupes | |
brew untap homebrew/fuse | |
# core | |
brew install coreutils | |
brew install binutils | |
brew install diffutils | |
brew install ed --default-names | |
brew install findutils --with-default-names | |
brew install gawk | |
brew install gnu-indent --with-default-names | |
brew install gnu-sed --with-default-names | |
brew install gnu-tar --with-default-names | |
brew install gnu-which --with-default-names | |
brew install gnutls | |
brew install grep --with-default-names | |
brew install gzip | |
brew install screen | |
brew install watch | |
brew install wget | |
brew install curl | |
# OS X ships a GNU version, but too old | |
brew install bash | |
brew install emacs | |
brew install gdb # gdb requires further actions to make it work. See `brew info gdb`. | |
brew install gpatch | |
brew install m4 | |
brew install make | |
brew install nano | |
# Other commands (non-GNU) | |
brew install file-formula | |
brew install git | |
brew install less | |
brew install openssh | |
brew install perl518 # must run "brew tap homebrew/versions" first! | |
brew install python | |
brew install python3 | |
brew install rsync | |
brew install svn | |
brew install unzip | |
brew install vim --override-system-vi | |
brew install macvim --override-system-vim --custom-system-icons | |
brew install zsh | |
# More shell goodness | |
brew install cless # better less | |
brew install most # better more | |
brew install pv # pipe through to see progress | |
brew install progress # see real progress of cp/mv/dd | |
brew install di # use instead of df | |
brew install lnav # muast-have, makes logs readable | |
brew install fzf # cant imagine a shell without it | |
# Python should have | |
pip3 install --upgrade --force-reinstall glances | |
pip3 install --upgrade --force-reinstall pygments | |
pip3 install --upgrade --force-reinstall mdv | |
pip3 install --upgrade --force-reinstall googler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment