Add pypoetry config, add oh-my-zsh install check before installer

This commit is contained in:
Evie Litherland-Smith 2023-01-18 10:15:19 +00:00
parent 59c50b58f3
commit 9e41c52c80
2 changed files with 9 additions and 2 deletions

View file

@ -0,0 +1,2 @@
[virtualenvs]
in-project = true

View file

@ -17,7 +17,7 @@ git_clone_if_missing () {
then then
git clone --depth 1 "$1" "$2" git clone --depth 1 "$1" "$2"
else else
echo "$1 already checked out -> $2" echo "$1 already checked out: $2"
fi fi
} }
@ -46,7 +46,12 @@ PACKER_DIR="$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim"
git_clone_if_missing "$PACKER_REPO" "$PACKER_DIR" git_clone_if_missing "$PACKER_REPO" "$PACKER_DIR"
# oh-my-zsh # oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" if [ ! -d "$ZSH" ]
then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
else
echo "oh-my-zsh already installed: $ZSH"
fi
OHMYZSH_DIR="${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}" OHMYZSH_DIR="${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"
if [ -d "$OHMYZSH_DIR" ] if [ -d "$OHMYZSH_DIR" ]
then then