Skip to content

⌨️ A simple Oh My ZSH! theme based on the Bira theme, displaying time instead of the username

License

Notifications You must be signed in to change notification settings

vemonet/biratime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⌚️ Biratime ZSH theme

A simple oh-my-zsh theme based on the Bira theme. The username has been replaced by the time in 24h format, as we usually don't need to be reminded on which machine and user we are logged in at every key stroke. But it can be helpful to keep track of time within the terminal.

The color of the time changes from blue to red if you are logged with a user that is not UID 1000, as the user with UID 1000 is usually the 1st user to be created on the machine, and used as main user. This helps to quickly know when you are logged in with a special user, such as root.

🖼️ What it looks like

Here is what the theme looks like in a Gnome Terminal with the solarized colors scheme enabled.

If there are uncommited changes in the current git repository:

screenshot commited

And if there are no changes to commit, but some local commits needs to be pushed to the remote git repository:

screenshot commited

📥️ Quick installation

You will need to have the ZSH shell installed. ```bash # On Debian-based Linux sudo apt install -y zsh # On RedHat Linux sudo dnf install -y zsh # On MacOS brew install zsh ```

Run the script to install the theme:

sh -c "$(curl -fsSL https://raw.github.com/vemonet/biratime/main/install.sh)"

🕵️ Detailed installation

  1. Install Oh My ZSH!
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  1. Download the theme:
curl -fsSL -o ~/.oh-my-zsh/custom/themes/biratime.zsh-theme https://raw.github.com/vemonet/biratime/main/biratime.zsh-theme
  1. Enable the theme and virtualenv plugin by editing your ~/.zshrc config file:
sed -i 's/^ZSH_THEME=".*"$/ZSH_THEME="biratime"/g' ~/.zshrc
sed -i 's/^plugins=(/plugins=(virtualenv /g' ~/.zshrc
  1. Enable the solarized colors scheme for your terminal

If you use Linux with the Gnome terminal:

git clone https://github.com/aruhier/gnome-terminal-colors-solarized.git
cd gnome-terminal-colors-solarized
./install.sh

If you use the Microsoft Terminal, you can enable solarized colors for the WSL terminal in the Settings window.

  1. Use the ZSH shell by default:
sudo chsh --shell=/usr/bin/zsh $USER
  1. Hide the default conda environment displayed to only show it with the ZSH theme:
echo "\`conda config --set changeps1 false\`" >> ~/.oh-my-zsh/plugins/virtualenv/virtualenv.plugin.zsh

🐳 Install in Docker

You can easily install this theme in a Dockerfile

RUN sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
RUN curl -fsSL -o ~/.oh-my-zsh/custom/themes/biratime.zsh-theme https://raw.github.com/vemonet/biratime/main/biratime.zsh-theme
RUN sed -i 's/^ZSH_THEME=".*"$/ZSH_THEME="biratime"/g' ~/.zshrc
RUN echo "\`conda config --set changeps1 false\`" >> ~/.oh-my-zsh/plugins/virtualenv/virtualenv.plugin.zsh
RUN echo 'setopt NO_HUP' >> ~/.zshrc
ENV SHELL=/bin/zsh

🕊️ Contribute

Feel free to create issues, or proposes changes through pull requests.

About

⌨️ A simple Oh My ZSH! theme based on the Bira theme, displaying time instead of the username

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages