Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vemonet/biratime
⌨️ A simple Oh My ZSH! theme based on the Bira theme, displaying time instead of the username
https://github.com/vemonet/biratime
oh-my-zsh oh-my-zsh-theme zsh zsh-theme
Last synced: 17 days ago
JSON representation
⌨️ A simple Oh My ZSH! theme based on the Bira theme, displaying time instead of the username
- Host: GitHub
- URL: https://github.com/vemonet/biratime
- Owner: vemonet
- License: mit
- Created: 2020-02-13T06:59:07.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-11-06T15:22:43.000Z (about 1 year ago)
- Last Synced: 2024-11-11T22:08:19.973Z (3 months ago)
- Topics: oh-my-zsh, oh-my-zsh-theme, zsh, zsh-theme
- Language: Shell
- Homepage:
- Size: 86.9 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⌚️ Biratime ZSH theme
A simple [oh-my-zsh](https://ohmyz.sh) theme based on the [Bira theme](https://github.com/ohmyzsh/ohmyzsh/blob/master/themes/bira.zsh-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](https://ethanschoonover.com/solarized) enabled.
If there are uncommited changes in the current git repository:
![screenshot commited](resources/screenshot_uncommited.png)
And if there are no changes to commit, but some local commits needs to be pushed to the remote git repository:
![screenshot commited](resources/screenshot_commited.png)
## 📥️ 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:
```bash
sh -c "$(curl -fsSL https://raw.github.com/vemonet/biratime/main/install.sh)"
```## 🕵️ Detailed installation
1. **Install [Oh My ZSH!](https://ohmyz.sh)**
```bash
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```2. **Download the theme**:
```bash
curl -fsSL -o ~/.oh-my-zsh/custom/themes/biratime.zsh-theme https://raw.github.com/vemonet/biratime/main/biratime.zsh-theme
```3. **Enable the theme** and `virtualenv` plugin by editing your `~/.zshrc` config file:
```bash
sed -i 's/^ZSH_THEME=".*"$/ZSH_THEME="biratime"/g' ~/.zshrc
sed -i 's/^plugins=(/plugins=(virtualenv /g' ~/.zshrc
```4. **Enable the [solarized colors scheme](https://ethanschoonover.com/solarized)** for your terminal
If you use Linux with the Gnome terminal:
```bash
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.
5. Use the **ZSH shell by default**:
```bash
sudo chsh --shell=/usr/bin/zsh $USER
```6. Hide the default **conda environment** displayed to only show it with the ZSH theme:
```bash
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`
```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.