Last active
January 8, 2026 04:35
-
-
Save revolutionnaire/c35203928f3f9ce7d06f764ae61b3979 to your computer and use it in GitHub Desktop.
Setup Chromebook with the basics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================================ | |
| # Chromebook Setup Script | |
| # ============================================================================ | |
| echo "Chromebook Setup" | |
| echo "This script will install packages and configure Terminal, Bash, and Vim." | |
| echo "" | |
| # Remove Vim icon on the launcher | |
| echo "Vim Icon" | |
| read -p "Do you want to remove Vim access through the desktop? (Y/n): " confirm | |
| if [[ -f "/usr/share/applications/vim.desktop" && $confirm" =~ ^[Yy]$ ]]; then | |
| sudo rm /usr/share/applications/vim.desktop | |
| else | |
| echo "File doesn't exist (yet.)" | |
| fi | |
| echo "" | |
| # Install packages | |
| echo "Packages" | |
| echo "Wayland Clipboard" | |
| echo "GitHub CLI" | |
| read -p "Proceed? (Y/n): " confirm | |
| if [[ "$confirm" =~ ^[Yy]$ ]]; then | |
| sudo apt update && sudo apt install wl-clipboard gh | |
| fi | |
| echo "" | |
| # Configure the terminal to use Commit Mono | |
| echo "Terminal Font" | |
| wl-copy <<EOF | |
| term_.prefs_.set('user-css', 'https://cdn.jsdelivr.net/npm/@fontsource/commit-mono@5.2.5/index.min.css'); | |
| term_.prefs_.set('font-family', 'Commit Mono', monospace'); | |
| EOF | |
| echo "A text has been copied to your clipboard. Press Ctrl + Alt + J and paste it on the console and press Return." | |
| read -p "Press enter once done..." | |
| echo "" | |
| # Configure GitHub CLI | |
| echo "GitHub CLI" | |
| echo "Follow the instructions below to setup GitHub authentication. Remember to add a passphrase to the SSH key." | |
| read -p "Proceed? (Y/n): " | |
| if [[ "$confirm" =~ ^[Yy]$ ]]; then | |
| gh auth login | |
| fi | |
| echo "" | |
| # Configure Bash | |
| echo "Bash" | |
| echo "Warning: this will replace the existing .profile." | |
| read -p "Proceed? (Y/n): " confirm | |
| if [[ "$confirm" =~ ^[Yy]$ ]]; then | |
| gh gist clone 756f2ccfbbc00abbfdd5f1c50e30655d ~/756f2ccfbbc00abbfdd5f1c50e30655d | |
| mv ~/756f2ccfbbc00abbfdd5f1c50e30655d/.profile ~/ | |
| fi | |
| echo "" | |
| # Configure, customize and install a plugin manager for Vim | |
| echo "Vim" | |
| echo "Install Vundle, and customize the look and hotkeys of Vim and configure it." | |
| read -p "Proceed? (Y/n):" confirm | |
| if [[ "$confirm" =~ ^[Yy]$ ]]; then | |
| mkdir ~/.vim | |
| gh gist clone ec936cb2d7b5b52cdb59b6235495e2b0 ~/ec936cb2d7b5b52cdb59b6235495e2b0 | |
| mv ~/ec936cb2d7b5b52cdb59b6235495e2b0/.vimrc ~/ | |
| git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
| echo "Let Vim install all the plugins first. Then, exit Vim." | |
| vim -c "PluginInstall" | |
| fi | |
| echo "" | |
| # Clean up unnecessary files and folders | |
| echo "Cleaning up. Run source .profile to apply changes to Bash." | |
| rm .setup_chromebook.sh | |
| rm -rf ~/756f2ccfbbc00abbfdd5f1c50e30655d | |
| rm -rf ~/ec936cb2d7b5b52cdb59b6235495e2b0 | |
| echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment