Add more recipes

This commit is contained in:
Correl Roush 2018-02-22 11:27:37 -05:00
parent c949106d88
commit 8ae3411507
14 changed files with 119 additions and 1 deletions

12
recipes/TeX Normal file
View file

@ -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

6
recipes/apib Normal file
View file

@ -0,0 +1,6 @@
#!/bin/bash
set +e
_recipe nvm
_npm drafter
_npm aglio

View file

@ -2,6 +2,7 @@
set +e set +e
_recipe brew _recipe brew
_recipe shell-utils
_recipe git _recipe git
_recipe zsh _recipe zsh
_recipe bin _recipe bin

View file

@ -28,7 +28,6 @@ function _brew {
fi fi
} }
if ! which brew >/dev/null; then if ! which brew >/dev/null; then
_run "Install brew" __install_brew _run "Install brew" __install_brew
fi fi

11
recipes/email Normal file
View file

@ -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

5
recipes/erlang Normal file
View file

@ -0,0 +1,5 @@
#!/bin/bash
set +e
_recipe brew
_brew kerl

5
recipes/exercism Normal file
View file

@ -0,0 +1,5 @@
#!/bin/bash
set +e
_recipe brew
_brew exercism

5
recipes/ledger Normal file
View file

@ -0,0 +1,5 @@
#!/bin/bash
set +e
_recipe brew
_brew ledger

6
recipes/mit-scheme Normal file
View file

@ -0,0 +1,6 @@
#!/bin/bash
set +e
_recipe brew
_brew mit-scheme

5
recipes/pandoc Normal file
View file

@ -0,0 +1,5 @@
#!/bin/bash
set +e
_recipe brew
_brew pandoc

18
recipes/path Normal file
View file

@ -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 $@
}

6
recipes/prolog Normal file
View file

@ -0,0 +1,6 @@
#!/bin/bash
set +e
_recipe brew
_brew swi-prolog

6
recipes/python3 Normal file
View file

@ -0,0 +1,6 @@
#!/bin/bash
set +e
_recipe brew
_brew python3
_brew mypy

33
recipes/shell-utils Normal file
View file

@ -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