File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ function _bash-it-install-enable() {
4848 done
4949}
5050
51+
5152# Ensure .bashrc is sourced from profile files on macOS/BSD/Solaris
5253function _bash-it-install-ensure-bashrc-sourcing() {
5354 # Only needed on platforms where login shells don't source .bashrc
@@ -302,6 +303,20 @@ else
302303 _bash-it-profile-load " default"
303304fi
304305
306+ if command -v code-server > /dev/null 2>&1 ; then
307+ echo " "
308+ echo " Installing VS Code extensions..."
309+ if [ -f " ${BASH_IT} /extensions.txt" ]; then
310+ while IFS= read -r extension || [ -n " $extension " ]; do
311+ # Skip empty lines and comments
312+ [[ -z " $extension " || " $extension " =~ ^# ]] && continue
313+ echo " Installing $extension ..."
314+ code-server --install-extension " $extension " 2> /dev/null || echo " Note: Could not install $extension (may already be installed or unavailable)"
315+ done < " ${BASH_IT} /extensions.txt"
316+ echo " VS Code extensions installation complete!"
317+ fi
318+ fi
319+
305320# Ensure .bashrc sourcing is set up on macOS/BSD/Solaris
306321_bash-it-install-ensure-bashrc-sourcing
307322
You can’t perform that action at this time.
0 commit comments