A curated setup combining Chris Titus's Bash logic with Dacrab's Fastfetch visuals.
- Source: ChrisTitusTech
- Repository: ChrisTitusTech/mybash
- Files:
.bashrc,starship.toml
- Source: Dacrab
- Repository: dacrab/fastfetch-config
- Files:
config.jsonc
Before running the setup script, ensure our system has the required dependencies and fonts.
Run this one-liner to check for missing packages or commands:
for i in bash tar bat tree unzip fc-list fontconfig bash-completion fastfetch starship fzf trash-cli multitail zoxide ripgrep; do if pacman -Qi "$i" &>/dev/null; then echo "[OK-PKG] $i"; elif type -P "$i" &>/dev/null; then echo "[OK-CMD] $i"; else echo -e "\e[31m[MISSING] $i\e[0m"; fi; doneExample Output:
[OK-PKG] bash
[MISSING] starship
[MISSING] trash-cli
If any items were [MISSING] above, install them (using yay covers both official repos and AUR):
yay -S starship trash-cli multitailA Nerd Font is required for the Starship prompt icons.
- Search for a font (e.g., Meslo, JetBrains, Hack):
pacman -Ss nerd | grep meslo - Install (Example for Meslo):
sudo pacman -S ttf-meslo-nerd
- Verify installation:
fc-list | grep -i "meslo"
This step will do a one-time download of the config files to ~/mybash and symlink them to our system configuration folders.
-
Make the script executable:
chmod +x setup_mybash.sh
-
Run the script:
./setup_mybash.sh
Note: This script will backup any existing .bashrc or configs before overwriting.
Open our new .bashrc file:
nano ~/.bashrcRequired edits:
- Remove broken sources: Look for lines starting with
sourceor.that point to files we didn't download (e.g.,source ~/scripts/aliases.sh). - Clean bloat: Remove specific checks for other distros (Debian/Fedora) if we want a cleaner file.
- Add what we need: Add own alias and configs where needed
Reload shell to see the results:
source ~/.bashrc