mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-16 03:00:08 +00:00
29 lines
450 B
Bash
Executable file
29 lines
450 B
Bash
Executable file
#!/bin/bash
|
|
set +e
|
|
|
|
function _run {
|
|
local msg=$1
|
|
shift
|
|
if [ -z "$DEBUG" ]; then
|
|
echo -n "$msg..."
|
|
$@ 2>&1 >/dev/null
|
|
else
|
|
echo "$msg..."
|
|
$@
|
|
fi
|
|
echo "done."
|
|
}
|
|
|
|
function _recipe {
|
|
source ${HOME}/dotfiles/recipes/$1
|
|
}
|
|
|
|
USER=${USER:-$(whoami)}
|
|
_PLATFORM=$(uname -s | awk '{print tolower($1)}')
|
|
|
|
for recipe in base $@; do
|
|
_recipe $recipe
|
|
done
|
|
|
|
echo "Finished, restarting shell."
|
|
exec $SHELL
|