An open API service indexing awesome lists of open source software.

https://github.com/williamcanin/pyhack

:computer: pyHack is a simple theme for ZSH that shows Python version, and more.
https://github.com/williamcanin/pyhack

oh-my-zsh python zsh zsh-theme

Last synced: 8 months ago
JSON representation

:computer: pyHack is a simple theme for ZSH that shows Python version, and more.

Awesome Lists containing this project

README

          

# pyHack

**pyHack** is a simple theme for **ZSH** that shows Python version, [Python](https://python.org) package version (*pyproject.toml*) and [Git](https://git-scm.com/) current branch information.

![image](https://raw.githubusercontent.com/williamcanin/pyhack/assets/screenshot/img0.jpg)

## Installing

1 - Clone to your user's **HOME**:

```
git clone --single-branch https://github.com/williamcanin/pyhack.git ~/.pyhack
```

2 - Load **pyHack** in *~/.zshrc*:

```
echo "source $HOME/.pyhack/pyhack.zsh-theme" >> ~/.zshrc
```
3 - Activate the **pyHack**:

```
zsh
```
### Using with **Oh My ZSH**

Install [Oh My ZSH](https://ohmyz.sh/) and follow the steps below.

1 - Clone to your user's **HOME**:

```
git clone --single-branch https://github.com/williamcanin/pyhack.git ~/.pyhack
```

2 - Create a symbolic link to **Oh My ZSH** custom themes folder:

```
ln -s ~/.pyhack/pyhack.zsh-theme $ZSH_CUSTOM/themes/pyhack.zsh-theme
```

3 - Activate the **pyHack**:

```
omz theme set pyhack
```

## Updating

To update **pyHack** to latest version, do:

```
cd ~/.pyhack; git pull origin main
```