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
|
|
|
|
2019-07-15 15:56:41 +00:00
|
|
|
_recipe _path
|
2018-02-22 16:27:37 +00:00
|
|
|
|
2018-02-23 21:37:02 +00:00
|
|
|
case $_PLATFORM in
|
|
|
|
darwin)
|
2020-06-24 01:29:06 +00:00
|
|
|
_recipe brew
|
|
|
|
|
2018-02-22 16:27:37 +00:00
|
|
|
_brew binutils
|
|
|
|
_brew coreutils
|
2019-07-15 15:56:41 +00:00
|
|
|
_brew findutils
|
2018-02-22 16:27:37 +00:00
|
|
|
_brew gawk
|
2019-07-15 15:56:41 +00:00
|
|
|
_brew gnu-indent
|
|
|
|
_brew gnu-sed
|
|
|
|
_brew gnu-tar
|
|
|
|
_brew gnu-which
|
2018-02-22 16:27:37 +00:00
|
|
|
|
2018-02-23 21:37:02 +00:00
|
|
|
# File browsing
|
|
|
|
_brew tree
|
|
|
|
_brew ncdu
|
|
|
|
|
|
|
|
# File compression
|
|
|
|
_brew p7zip
|
2018-02-23 21:50:21 +00:00
|
|
|
|
|
|
|
# Misc
|
2018-04-11 03:23:59 +00:00
|
|
|
_brew entr
|
2020-08-28 01:41:37 +00:00
|
|
|
_brew html-xml-utils
|
2018-02-23 21:50:21 +00:00
|
|
|
_brew htop
|
|
|
|
_brew jq
|
|
|
|
_brew lnav
|
2021-01-22 00:21:46 +00:00
|
|
|
_brew ripgrep
|
2018-04-11 03:23:59 +00:00
|
|
|
_brew the_silver_searcher
|
2018-02-23 21:50:21 +00:00
|
|
|
_brew tig
|
|
|
|
_brew tmux
|
2018-05-30 13:46:11 +00:00
|
|
|
|
|
|
|
_brew rename
|
|
|
|
_brew watch
|
2019-07-15 15:56:41 +00:00
|
|
|
|
|
|
|
# Override BSD tools with GNU variants
|
|
|
|
for path in $(gfind /usr/local/Cellar -type d -name gnubin); do
|
|
|
|
_path $path \;
|
|
|
|
done
|
2018-02-23 21:37:02 +00:00
|
|
|
;;
|
2021-02-05 00:05:51 +00:00
|
|
|
arch)
|
|
|
|
_recipe _arch
|
|
|
|
|
|
|
|
# File browsing
|
|
|
|
_pacman tree
|
|
|
|
_pacman ncdu
|
|
|
|
|
|
|
|
# File compression
|
|
|
|
_pacman p7zip
|
|
|
|
|
|
|
|
# Misc
|
|
|
|
_pacman entr
|
|
|
|
_yay html-xml-utils
|
|
|
|
_pacman htop
|
|
|
|
_pacman jq
|
|
|
|
_yay lnav
|
|
|
|
_pacman ripgrep
|
|
|
|
_pacman the_silver_searcher
|
|
|
|
_pacman tig
|
|
|
|
_pacman tmux
|
|
|
|
;;
|
|
|
|
debian)
|
2018-02-23 21:37:02 +00:00
|
|
|
_recipe _apt
|
2018-02-22 16:27:37 +00:00
|
|
|
|
2018-02-23 21:37:02 +00:00
|
|
|
# File browsing
|
|
|
|
_apt tree
|
|
|
|
_apt ncdu
|
2018-02-22 16:27:37 +00:00
|
|
|
|
2018-02-23 21:37:02 +00:00
|
|
|
# File compression
|
|
|
|
_apt p7zip
|
2018-02-23 21:50:21 +00:00
|
|
|
|
|
|
|
# Misc
|
2018-04-11 03:23:59 +00:00
|
|
|
_apt entr
|
2020-08-28 01:41:37 +00:00
|
|
|
_apt html-xml-utils
|
2018-02-23 21:50:21 +00:00
|
|
|
_apt htop
|
|
|
|
_apt jq
|
|
|
|
_apt lnav
|
2021-01-22 00:21:46 +00:00
|
|
|
_apt ripgrep
|
2018-04-11 03:23:59 +00:00
|
|
|
_apt silversearcher-ag
|
2018-02-23 21:50:21 +00:00
|
|
|
_apt tig
|
|
|
|
_apt tmux
|
2018-02-23 21:37:02 +00:00
|
|
|
;;
|
|
|
|
esac
|