Script for terminal themeing
Highlighting a brilliant project by lemnos which lets you change your terminalβs theme on the fly from a selection of 274 themes.
Install
Option 1. I want this installed for use by my user account
# Download to user's custom executable location
mkdir -p ~/.local/bin/
curl -o ~/.local/bin/theme.sh 'https://raw.githubusercontent.com/lemnos/theme.sh/master/theme.sh'
# Confirm no shenanigans
nano ~/.local/bin/theme.sh
# Make executable to current user
chmod u+x ~/.local/bin/theme.sh
Option 2. I want this installed for use by every account
Note: I changed the installation destination from /usr/bin
to /usr/local/bin
to follow filesystem standards.
# Download to system's custom executable location
sudo curl -o /usr/local/bin/theme.sh 'https://raw.githubusercontent.com/lemnos/theme.sh/master/theme.sh'
# Confirm no shenanigans
nano /usr/local/bin/theme.sh
# Make executable to all users
sudo chmod +x /usr/local/bin/theme.sh
Try it out
# Output CLI instructions
theme.sh
Pick a theme interactively:
theme.sh -i # Enter interactive mode to pick a theme: # Use: theme.sh -i2 for terminals limited to 16 colors.
# Use the arrow keys or type to search # Enter to select a theme # Ctrl + C to quit
Before:
After:
Add this command to your .bashrc to make a theme permanent:
nano ~/.bashrc
# Add the following replacing "tempus-autumn" w/ your desired theme:
theme.sh tempus-autumn
# Save & quit
# Open a new terminal