mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-27 19:19:53 +00:00
88 lines
1.6 KiB
Bash
88 lines
1.6 KiB
Bash
#!/bin/bash
|
|
# Description: Useful command-line utilities
|
|
set -e
|
|
|
|
_recipe _path
|
|
|
|
case $_PLATFORM in
|
|
darwin)
|
|
_recipe brew
|
|
|
|
_brew binutils
|
|
_brew coreutils
|
|
_brew findutils
|
|
_brew gawk
|
|
_brew gnu-indent
|
|
_brew gnu-sed
|
|
_brew gnu-tar
|
|
_brew gnu-which
|
|
|
|
# File browsing
|
|
_brew tree
|
|
_brew ncdu
|
|
|
|
# File compression
|
|
_brew p7zip
|
|
|
|
# Misc
|
|
_brew entr
|
|
_brew html-xml-utils
|
|
_brew htop
|
|
_brew jq
|
|
_brew lnav
|
|
_brew ripgrep
|
|
_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
|
|
;;
|
|
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)
|
|
_recipe _apt
|
|
|
|
# File browsing
|
|
_apt tree
|
|
_apt ncdu
|
|
|
|
# File compression
|
|
_apt p7zip
|
|
|
|
# Misc
|
|
_apt entr
|
|
_apt html-xml-utils
|
|
_apt htop
|
|
_apt jq
|
|
_apt lnav
|
|
_apt ripgrep
|
|
_apt silversearcher-ag
|
|
_apt tig
|
|
_apt tmux
|
|
;;
|
|
esac
|