Jafner.net/dotfiles/setup-scripts/fedora-install-zsh.sh
Joey Hafner 97e4cc547a
Init Jafner.net monorepo from constituent repos:
1. homelab [Gitea](https://gitea.jafner.tools/Jafner/homelab), [Github (docker_config)](https://github.com/Jafner/docker_config), [Github (wiki)](https://github.com/Jafner/wiki), [Github (cloud_tools)](https://github.com/Jafner/cloud_tools), [Github (self-hosting)](https://github.com/Jafner/self-hosting).
   - Rename? Jafner.net? Wouldn't that be `Jafner/Jafner.net/Jafner.net`?
2. Jafner.dev [Github](https://github.com/Jafner/Jafner.dev).
3. dotfiles [Gitea](https://gitea.jafner.tools/Jafner/dotfiles), [Github](https://github.com/Jafner/dotfiles).
4. nvgm [Gitea](https://gitea.jafner.tools/Jafner/nvgm)
5. pamidi [Gitea](https://gitea.jafner.tools/Jafner/pamidi), [Github](https://github.com/Jafner/pamidi)
6. docker-llm-amd [Gitea](https://gitea.jafner.tools/Jafner/docker-llm-amd)
7. doradash [Gitea](https://gitea.jafner.tools/Jafner/doradash)
8. clip-it-and-ship-it [Gitea (PyClipIt)](https://gitea.jafner.tools/Jafner/PyClipIt), [Github](https://github.com/Jafner/clip-it-and-ship-it).
9. razer battery led [Github](https://github.com/Jafner/Razer-BatteryLevelRGB)
10. 5etools-docker [Github](https://github.com/Jafner/5etools-docker)
11. jafner-homebrew [Github](https://github.com/Jafner/jafner-homebrew)
2024-07-15 15:35:16 -07:00

29 lines
654 B
Bash

#!/bin/bash
# Step 1: Install font
if ! [ -d "$HOME/.fonts" ]; then
mkdir -p "$HOME/.fonts"
fi
fonts_list=
if ! [[ $(fc-list) =~ "JetBrainsMonoNerdFont" ]]; then
curl -L https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz | tar -xf -C "$HOME/.fonts"
fc-cache
fi
# Step 2: Install zsh
if ! [ -x "$(command -v zsh)" ]; then
sudo dnf install zsh
fi
# Set default shell to zsh
if [ -z "$SHELL" ] || [ "$(basename $SHELL)" != "zsh" ]; then
chsh -s $(which zsh)
fi
# Step 3: Configure ~/.zshrc
if ! [ -f "$HOME/.zshrc" ]; then
cp ../.zshrc $HOME/
fi
# Step: Init the configuration
source ~/.zshrc