2024-06-03 16:12:54 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
if [ -f package.json ]; then
|
|
|
|
bash -i -c "nvm install --lts && nvm install-latest-npm"
|
|
|
|
npm i
|
|
|
|
npm run build
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Install dependencies for shfmt extension
|
|
|
|
curl -sS https://webi.sh/shfmt | sh &>/dev/null
|
2024-06-07 19:45:59 +03:00
|
|
|
|
|
|
|
# Add OMZ plugins
|
|
|
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
|
|
|
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
|
|
|
sed -i -E "s/^(plugins=\()(git)(\))/\1\2 zsh-syntax-highlighting zsh-autosuggestions\3/" ~/.zshrc
|
|
|
|
|
|
|
|
# Avoid git log use less
|
|
|
|
echo -e "\nunset LESS" >>~/.zshrc
|