update vscode extensions

This commit is contained in:
Daylin Morgan 2022-01-07 13:23:49 -06:00
parent 8b71deee75
commit 35fb1fc84b
4 changed files with 27 additions and 211 deletions

View file

@ -8,6 +8,7 @@ misc-tools:
- janisdd.vscode-edit-csv
- cssho.vscode-svgviewer
- naumovs.color-highlight
- antfu.slidev
web-dev:
- bradlc.vscode-tailwindcss
- ritwickdey.liveserver
@ -15,10 +16,10 @@ styling:
- johnpapa.vscode-peacock
- PKief.material-icon-theme
- Thomaz.preparing
- whizkydee.material-palenight-theme
- dracula-theme.theme-dracula
code-help:
- christian-kohler.path-intellisense
- aaron-bond.better-comments
- CoenraadS.bracket-pair-colorizer-2
- streetsidesoftware.code-spell-checker
- vsls-contrib.gistfs
- mhutchie.git-graph
@ -34,3 +35,9 @@ language-support:
- James-Yu.latex-workshop
- budparr.language-hugo-vscode
- tht13.rst-vscode
- skellock.just
- neilding.language-liquid
- snakemake.snakemake-lang
- voorjaar.windicss-intellisense
- eww-yuck.yuck
- bungcip.better-toml

View file

@ -1,205 +0,0 @@
# script to install the extra needed tools programmatically
# add command line flags and function to govern install?
MAMBAFORGE_RELEASE="https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh"
MAMBAFORGE_INSTALLER="Mambaforge-Linux-x86_64.sh"
help() {
cat << EOF
extras downloaders
by default will download all packages listed below
usage: $0 [OPTIONS]
--help Show this message
--force Overwrite current installations
To install a subset of these
use any of the package specific flag:
--fzf
--nvm
--mambaforge
EOF
}
for opt in "$@"; do
case $opt in
--help)
help
exit 0
;;
--force) force=1 ;;
--fzf) fzf=1 ;;
--nvm) nvm=1 ;;
--mambaforge) mamba=1 ;;
*)
echo "unknown option: $opt"
help
exit 1
;;
esac
done
check_existing() {
pkg=$1
install_dir=$2
declare -n skip_out=$3
if [ -d "$install_dir" ]; then
echo "found existing $pkg installation"
if [[ "$force" ]]; then
echo "removing previous installation"
rm -rf $install_dir
skip=0
else
skip=1
fi
fi
skip=0
}
ask() {
while true; do
read -p "$1 ([y]/n) " -r
REPLY=${REPLY:-"y"}
if [[ $REPLY =~ ^[Yy]$ ]]; then
return 1
elif [[ $REPLY =~ ^[Nn]$ ]]; then
return 0
fi
done
}
install_fzf() {
echo "##############"
echo installing fzf
echo "##############"
check_existing "fzf" "$HOME/.fzf" skip
if [[ "$skip" -eq 1 ]];
then
echo "remove your previous installation or rerun with --force"
return
fi
echo "installing fzf using git"
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install \
--key-bindings \
--completion \
--no-bash \
--no-zsh \
--no-update-rc \
}
install_nvm() {
echo "##############"
echo installing nvm
echo "##############"
echo look at me installing nvm heheh
check_existing "nvm" "$HOME/.nvm" skip
if [[ "$skip" -eq 1 ]];
then
echo "remove your previous installation or rerun with --force"
return
fi
local current_dir=$PWD
git clone https://github.com/nvm-sh/nvm.git ~/.nvm
cd ~/.nvm
git checkout v0.39.0
. ./nvm.sh
cd $current_dir
}
install_mambaforge() {
echo "#####################"
echo installing mambaforge
echo "#####################"
check_existing "mambaforge" "$HOME/mambaforge" skip
if [[ "$skip" -eq 1 ]];
then
echo "remove your previous installation or rerun with --force"
return
fi
echo "#####################"
echo installing mambaforge
echo "#####################"
echo "fetching install script from github"
current_dir=$PWD
cd ~/
wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh
bash "$MAMBAFORGE_INSTALLER" -s
rm "$MAMBAFORGE_INSTALLER"
echo "cleaning up installer"
cd $current_dir
}
install_all() {
echo "installing all packages..."
echo
install_fzf
echo
install_nvm
echo
install_mambaforge
}
# remove once functional
echo $@
echo "#################"
echo EXTRAS DOWNLOADER
echo "#################"
echo
if [ $# -eq 0 ];
then
install_all
exit
fi
if [ "$fzf" ]; then
install_fzf
fi
if [ "$nvm" ]; then
install_nvm
fi
if [ "$mamba" ];
then install_mambaforge
fi
echo "FINISHED!"

View file

@ -9,14 +9,15 @@ call code --install-extension Shan.code-settings-sync --force
call code --install-extension janisdd.vscode-edit-csv --force
call code --install-extension cssho.vscode-svgviewer --force
call code --install-extension naumovs.color-highlight --force
call code --install-extension antfu.slidev --force
call code --install-extension bradlc.vscode-tailwindcss --force
call code --install-extension ritwickdey.liveserver --force
call code --install-extension johnpapa.vscode-peacock --force
call code --install-extension PKief.material-icon-theme --force
call code --install-extension Thomaz.preparing --force
call code --install-extension whizkydee.material-palenight-theme --force
call code --install-extension dracula-theme.theme-dracula --force
call code --install-extension christian-kohler.path-intellisense --force
call code --install-extension aaron-bond.better-comments --force
call code --install-extension CoenraadS.bracket-pair-colorizer-2 --force
call code --install-extension streetsidesoftware.code-spell-checker --force
call code --install-extension vsls-contrib.gistfs --force
call code --install-extension mhutchie.git-graph --force
@ -30,3 +31,9 @@ call code --install-extension Ikuyadeu.r --force
call code --install-extension James-Yu.latex-workshop --force
call code --install-extension budparr.language-hugo-vscode --force
call code --install-extension tht13.rst-vscode --force
call code --install-extension skellock.just --force
call code --install-extension neilding.language-liquid --force
call code --install-extension snakemake.snakemake-lang --force
call code --install-extension voorjaar.windicss-intellisense --force
call code --install-extension eww-yuck.yuck --force
call code --install-extension bungcip.better-toml --force

11
vscode/install-extensions.sh Normal file → Executable file
View file

@ -9,14 +9,15 @@ code --install-extension Shan.code-settings-sync --force
code --install-extension janisdd.vscode-edit-csv --force
code --install-extension cssho.vscode-svgviewer --force
code --install-extension naumovs.color-highlight --force
code --install-extension antfu.slidev --force
code --install-extension bradlc.vscode-tailwindcss --force
code --install-extension ritwickdey.liveserver --force
code --install-extension johnpapa.vscode-peacock --force
code --install-extension PKief.material-icon-theme --force
code --install-extension Thomaz.preparing --force
code --install-extension whizkydee.material-palenight-theme --force
code --install-extension dracula-theme.theme-dracula --force
code --install-extension christian-kohler.path-intellisense --force
code --install-extension aaron-bond.better-comments --force
code --install-extension CoenraadS.bracket-pair-colorizer-2 --force
code --install-extension streetsidesoftware.code-spell-checker --force
code --install-extension vsls-contrib.gistfs --force
code --install-extension mhutchie.git-graph --force
@ -30,3 +31,9 @@ code --install-extension Ikuyadeu.r --force
code --install-extension James-Yu.latex-workshop --force
code --install-extension budparr.language-hugo-vscode --force
code --install-extension tht13.rst-vscode --force
code --install-extension skellock.just --force
code --install-extension neilding.language-liquid --force
code --install-extension snakemake.snakemake-lang --force
code --install-extension voorjaar.windicss-intellisense --force
code --install-extension eww-yuck.yuck --force
code --install-extension bungcip.better-toml --force