Add pypoetry config, add oh-my-zsh install check before installer
This commit is contained in:
parent
59c50b58f3
commit
9e41c52c80
2
config/pypoetry/config.toml
Normal file
2
config/pypoetry/config.toml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[virtualenvs]
|
||||||
|
in-project = true
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue