Add rust and ruby stuff to zshrc, add OS test

This commit is contained in:
maddiebaka 2023-07-10 11:08:08 -04:00
parent ed72b5ab86
commit 21d0c8b408

View File

@ -108,4 +108,30 @@ alias gdiffc="git diff --cached"
alias gitc="git commit" alias gitc="git commit"
export LC_CTYPE="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8"
source ~/.cargo/env # Homebrew / MacOS Library Path
export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib"
case ($uname -s) in
Linux)
export OS="linux"
;;
Darwin)
export OS="darwin"
;;
*)
echo "Can't detect operating system from shell."
;;
esac
# Rust dev
if [ -d ~/.cargo/ ]
then
source ~/.cargo/env
fi
# Ruby dev
eval "$(rbenv init - zsh)"
# Liz stuff lol
# curl -fsSL https://icanhazdadjoke.com | lolcat