From 7b2da01f1430c27b2219e3570d81bc5c010528a0 Mon Sep 17 00:00:00 2001 From: Michael Taron Date: Thu, 25 Apr 2024 09:45:33 -0700 Subject: [PATCH] trying to get dotfile install to work in devcontainer --- external/vscode/settings.json | 2 +- home/.chezmoiscripts/linux/run_once_before_chsh.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/external/vscode/settings.json b/external/vscode/settings.json index ada81d1..3983d3d 100644 --- a/external/vscode/settings.json +++ b/external/vscode/settings.json @@ -2,7 +2,7 @@ "azureFunctions.showProjectWarning": false, "azureFunctions.showPythonVenvWarning": false, "cfnLint.validateUsingJsonSchema": true, - "dotfiles.installCommand": "~/dotfiles/install.sh --one-shot", + "dotfiles.installCommand": "install.sh --one-shot", "dotfiles.repository": "https://github.com/mtaron/dotfiles.git", "dotfiles.targetPath": "~/dotfiles", "editor.bracketPairColorization.enabled": true, diff --git a/home/.chezmoiscripts/linux/run_once_before_chsh.sh b/home/.chezmoiscripts/linux/run_once_before_chsh.sh index d333129..ec37c8a 100644 --- a/home/.chezmoiscripts/linux/run_once_before_chsh.sh +++ b/home/.chezmoiscripts/linux/run_once_before_chsh.sh @@ -5,5 +5,5 @@ set -e zsh_path="$(command -v zsh)" if [ "$SHELL" != "$zsh_path" ]; then echo "Changing default shell to zsh" - chsh --shell "$zsh_path" + sudo chsh --shell "$zsh_path" fi