Compare commits

...

3 Commits

Author SHA1 Message Date
maddiebaka adfa0ff4f8 Add support for .dev.sh install-specific shell configuration 2023-09-11 00:54:11 -04:00
maddiebaka 3db6222162 Move comment, add check for OpenBSD 2023-09-11 00:54:11 -04:00
maddiebaka 1688885a6f Fix platform detection 2023-09-11 00:54:11 -04:00
2 changed files with 18 additions and 5 deletions

View File

@ -97,6 +97,12 @@ function install {
fi
echo "Done"
echo "Creating empty .dev.sh..."
if [ ! -e ~/.dev.sh ]; then
echo "# Create install-specific shell configuration here." > ~/.dev.sh
fi
echo "Done"
echo "Tightening permissions on \$HOME..."
if ! $dryrun; then
chmod o-rx $HOME

View File

@ -109,16 +109,21 @@ alias gitc="git commit"
alias rc2014="minicom -D /dev/tty.usbmodem09681"
export LC_CTYPE="en_US.UTF-8"
# Homebrew / MacOS Library Path
export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib"
uname=`uname -s`
uname=$(uname -s)
case $uname in
Linux)
export OS="linux"
;;
Darwin)
export OS="darwin"
# Homebrew / MacOS Library Path
export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib"
# Ruby dev
eval "$(rbenv init - zsh)"
;;
OpenBSD)
export OS="openbsd"
;;
*)
echo "Can't detect operating system from shell."
@ -132,8 +137,10 @@ then
source ~/.cargo/env
fi
# Ruby dev
eval "$(rbenv init - zsh)"
if [ -e ~/.dev.sh ]
then
source ~/.dev.sh
fi
# Liz stuff lol
# curl -fsSL https://icanhazdadjoke.com | lolcat