Skip to content

Commit

Permalink
zsh lean
Browse files Browse the repository at this point in the history
  • Loading branch information
FloSch62 committed Dec 3, 2024
1 parent e841b8c commit f3d9a1f
Show file tree
Hide file tree
Showing 4 changed files with 1,871 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ RUN bash -c "$(curl https://pyenv.run)"
RUN bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended

COPY --chown=clab:clab ./zsh/.zshrc /home/clab/.zshrc
COPY --chown=clab:clab ./zsh/.p10k-lean.zsh /home/clab/.p10k-lean.zsh
COPY --chown=clab:clab ./zsh/.zshrc-lean /home/clab/.zshrc-lean
COPY --chown=clab:clab ./zsh/.p10k.zsh /home/clab/.p10k.zsh
COPY --chown=clab:clab ./zsh/install-zsh-plugins.sh /tmp/install-zsh-plugins.sh
COPY --chown=clab:clab ./zsh/install-tools-completions.sh /tmp/install-tools-completions.sh
Expand Down
43 changes: 36 additions & 7 deletions oobe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,42 @@ Please select which shell you'd like to use: "
"zsh")
echo -e "\033[34m\nzsh selected\033[0m"
echo -e "\033[33mNote: zsh with custom theme requires Nerd Font for proper symbol display\033[0m"
read -p "Would you like to install FiraCode Nerd Font? (y/N) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
install_fonts
fi

PS3="
Select zsh configuration: "
zsh_opts=("Full featured (many plugins)" "Lean version (minimal plugins)")
select zsh_config in "${zsh_opts[@]}"
do
case $zsh_config in
"Full featured (many plugins)")
echo -e "\033[34m\nConfiguring full featured zsh\033[0m"
read -p "Would you like to install FiraCode Nerd Font? (y/N) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
install_fonts
fi
# Use default .zshrc and .p10k.zsh
sudo -u clab cp /home/clab/.zshrc{,.bak}
sudo -u clab cp /home/clab/.p10k.zsh{,.bak}
break 2
;;
"Lean version (minimal plugins)")
echo -e "\033[34m\nConfiguring lean zsh\033[0m"
read -p "Would you like to install FiraCode Nerd Font? (y/N) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
install_fonts
fi
# Use lean versions
sudo -u clab cp /home/clab/.zshrc{,.bak}
sudo -u clab cp /home/clab/.p10k.zsh{,.bak}
sudo -u clab cp /home/clab/.zshrc-lean /home/clab/.zshrc
sudo -u clab cp /home/clab/.p10k-lean.zsh /home/clab/.p10k.zsh
break 2
;;
*) echo -e "\033[31m\n'$REPLY' is not a valid choice\033[0m";;
esac
done
sudo chsh -s "$(which zsh)" clab
break
;;
Expand All @@ -128,8 +159,6 @@ Please select which shell you'd like to use: "
esac
done

#containerlab version

exit 0
fi

Expand Down
Loading

0 comments on commit f3d9a1f

Please sign in to comment.