dotfiles/recipes/shell-utils

66 lines
1.1 KiB
Text
Raw Normal View History

2018-02-22 16:27:37 +00:00
#!/bin/bash
2018-04-12 18:07:33 +00:00
# Description: Useful command-line utilities
2018-02-27 05:15:14 +00:00
set -e
2018-02-22 16:27:37 +00:00
_recipe _path
2018-02-22 16:27:37 +00:00
case $_PLATFORM in
darwin)
_recipe brew
2018-02-22 16:27:37 +00:00
_brew binutils
_brew coreutils
_brew findutils
2018-02-22 16:27:37 +00:00
_brew gawk
_brew gnu-indent
_brew gnu-sed
_brew gnu-tar
_brew gnu-which
2018-02-22 16:27:37 +00:00
# File browsing
_brew tree
_brew ncdu
# File compression
_brew p7zip
_brew unrar
# Misc
2018-04-11 03:23:59 +00:00
_brew entr
_brew htop
_brew jq
_brew lnav
2018-04-11 03:23:59 +00:00
_brew the_silver_searcher
_brew tig
_brew tmux
_brew rename
_brew watch
# Override BSD tools with GNU variants
for path in $(gfind /usr/local/Cellar -type d -name gnubin); do
_path $path \;
done
;;
*)
_recipe _apt
2018-02-22 16:27:37 +00:00
# File browsing
_apt tree
_apt ncdu
2018-02-22 16:27:37 +00:00
# File compression
_apt p7zip
_apt unrar
# Misc
2018-04-11 03:23:59 +00:00
_apt entr
_apt htop
_apt jq
_apt lnav
2018-04-11 03:23:59 +00:00
_apt silversearcher-ag
_apt tig
_apt tmux
;;
esac