Skip to content

Commit fef130d

Browse files
authored
Purge "oh-my-zsh"; fish as default; add cloc (#19)
1 parent 0fffa0b commit fef130d

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎src/personal-setup/devcontainer-feature.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "personal-setup",
3-
"version": "5.0.0",
3+
"version": "5.1.0",
44
"name": "Personal Setup",
55
"description": "Sets up my desired software and configuration for any devcontainer environment.",
66
"mounts": [

‎src/personal-setup/install.sh‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ echo "Installing packages for distribution: $ID"
1212
case "$ID" in
1313
debian|ubuntu)
1414
apt-get update
15-
apt-get install -y curl fd-find fish git-delta jq less openssh-client rcm ripgrep tree
15+
apt-get install -y cloc curl fd-find fish git-delta jq less openssh-client rcm ripgrep tree
1616
;;
1717
fedora)
18-
dnf install -y curl fd-find fish git-delta jq less openssh-clients rcm ripgrep tree
18+
dnf install -y cloc curl fd-find fish git-delta jq less openssh-clients rcm ripgrep tree
1919
;;
2020
*)
2121
echo "Error: Unsupported distribution: $ID"
@@ -30,3 +30,9 @@ EXCLUDES="README.md"
3030
DOTFILES_DIRS="/mnt/dotfiles /mnt/dotfiles-private"
3131
TAGS="devcontainer"
3232
EOF
33+
34+
# Some devcontainer configurations outside my control explicitly set zsh as the default shell, and
35+
# to add insult to injury, install the unspeakable abomination that is `oh-my-zsh`.
36+
echo "Purge oh-my-zsh and enforce fish as the default shell"
37+
rm -rf "${_REMOTE_USER_HOME}/.oh-my-zsh"
38+
chsh -s "$(which fish)" "${_REMOTE_USER}"

0 commit comments

Comments
 (0)