diff --git a/recipes/TeX b/recipes/TeX new file mode 100644 index 0000000..ed1783c --- /dev/null +++ b/recipes/TeX @@ -0,0 +1,12 @@ +#!/bin/bash +set +e + +case "$(uname -s)" in + Darwin) + _recipe brew + brew cask install mactex + ;; + *) + _recipe _apt + _apt texlive-full +esac diff --git a/recipes/apib b/recipes/apib new file mode 100644 index 0000000..f67f46c --- /dev/null +++ b/recipes/apib @@ -0,0 +1,6 @@ +#!/bin/bash +set +e + +_recipe nvm +_npm drafter +_npm aglio diff --git a/recipes/base b/recipes/base index 174282a..2a7184b 100644 --- a/recipes/base +++ b/recipes/base @@ -2,6 +2,7 @@ set +e _recipe brew +_recipe shell-utils _recipe git _recipe zsh _recipe bin diff --git a/recipes/brew b/recipes/brew index 2f3633e..a2c3644 100644 --- a/recipes/brew +++ b/recipes/brew @@ -28,7 +28,6 @@ function _brew { fi } - if ! which brew >/dev/null; then _run "Install brew" __install_brew fi diff --git a/recipes/email b/recipes/email new file mode 100644 index 0000000..6c7a6f4 --- /dev/null +++ b/recipes/email @@ -0,0 +1,11 @@ +#!/bin/bash +set +e + +_recipe brew +_brew isync + +_recipe emacs +EMACS=$(which emacs) _brew mu --with-emacs --HEAD + +_recipe nvm +_npm imapnotify diff --git a/recipes/erlang b/recipes/erlang new file mode 100644 index 0000000..a65bad4 --- /dev/null +++ b/recipes/erlang @@ -0,0 +1,5 @@ +#!/bin/bash +set +e + +_recipe brew +_brew kerl diff --git a/recipes/exercism b/recipes/exercism new file mode 100644 index 0000000..5d8faec --- /dev/null +++ b/recipes/exercism @@ -0,0 +1,5 @@ +#!/bin/bash +set +e + +_recipe brew +_brew exercism diff --git a/recipes/ledger b/recipes/ledger new file mode 100644 index 0000000..2128e60 --- /dev/null +++ b/recipes/ledger @@ -0,0 +1,5 @@ +#!/bin/bash +set +e + +_recipe brew +_brew ledger diff --git a/recipes/mit-scheme b/recipes/mit-scheme new file mode 100644 index 0000000..1bb21d9 --- /dev/null +++ b/recipes/mit-scheme @@ -0,0 +1,6 @@ +#!/bin/bash +set +e + +_recipe brew +_brew mit-scheme + diff --git a/recipes/pandoc b/recipes/pandoc new file mode 100644 index 0000000..7202853 --- /dev/null +++ b/recipes/pandoc @@ -0,0 +1,5 @@ +#!/bin/bash +set +e + +_recipe brew +_brew pandoc \ No newline at end of file diff --git a/recipes/path b/recipes/path new file mode 100644 index 0000000..a09962c --- /dev/null +++ b/recipes/path @@ -0,0 +1,18 @@ +#!/bin/bash +set +e + +function _path_low { + PATH="$1:$PATH" + test -r ~/.bash_profile && echo "export PATH='$1'":'"$PATH"' >>~/.bash_profile + echo "export PATH='$1'":'"$PATH"' >>~/.profile +} + +function _path_high { + PATH="$PATH:$1" + test -r ~/.bash_profile && echo 'export PATH="$PATH"':"'$PATH'" >>~/.bash_profile + echo "export PATH='$1'":'"$PATH"' >>~/.profile +} + +function _path { + _path_low $@ +} diff --git a/recipes/prolog b/recipes/prolog new file mode 100644 index 0000000..30a0c22 --- /dev/null +++ b/recipes/prolog @@ -0,0 +1,6 @@ +#!/bin/bash +set +e + +_recipe brew +_brew swi-prolog + diff --git a/recipes/python3 b/recipes/python3 new file mode 100644 index 0000000..764e52c --- /dev/null +++ b/recipes/python3 @@ -0,0 +1,6 @@ +#!/bin/bash +set +e + +_recipe brew +_brew python3 +_brew mypy diff --git a/recipes/shell-utils b/recipes/shell-utils new file mode 100644 index 0000000..f0d6b95 --- /dev/null +++ b/recipes/shell-utils @@ -0,0 +1,33 @@ +#!/bin/bash +set +e + +_recipe brew + +case "$(uname -s)" in + Darwin) + _brew binutils + _brew coreutils + _brew findutils --with-default-names + _brew gawk + _brew gnu-indent --with-default-names + _brew gnu-sed --with-default-names + _brew gnu-tar --with-default-names + _brew gnu-which --with-default-names + ;; +esac + +# File browsing +_brew tree +_brew ncdu + +# File compression +_brew p7zip +_brew unrar + + +# Misc +_brew htop +_brew tig +_brew lnav +_brew tmux +_brew jq