Skip to content

Latest commit

 

History

History
43 lines (42 loc) · 1.55 KB

README.md

File metadata and controls

43 lines (42 loc) · 1.55 KB

bastard.zsh-theme

Modified version of gitster theme for ZIM.

Installation

  1. Install Zsh (Debian)
$ sudo apt update && sudo apt install git curl zsh -y
  1. Install ZIM
$ curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
$ zsh # restart
  1. Install bastard.zsh-theme
$ echo 'zmodule https://github.com/jsundqvist/bastard.zsh-theme -n bastard' >> $HOME/.zimrc
$ zimfw install
$ zsh # restart again

Awesome Dockerfile

FROM bitnami/minideb

RUN install_packages apt-transport-https ca-certificates nano curl wget unzip zip tree git zsh jq -y && \
    echo 'set linenumbers' >> ~/.nanorc && \
    echo 'set tabsize 4' >> ~/.nanorc && \
    git config --global pull.rebase true
SHELL ["zsh", "-ic"]
RUN update-ca-certificates && \
    curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh && \
    echo 'zmodule https://github.com/jsundqvist/bastard.zsh-theme -n bastard' >> $HOME/.zimrc && \
    zsh -ic "zimfw install"
CMD ["zsh"]

Changes from gitster

  1. Use full pwd instead of short_pwd
  2. Verbose git-info will show repo as dirty on untracked files.
  3. Red dirty instead of yellow.
  4. Symbols for ahead, behind, diverged, bisect, merge, rebase and cherry-pick.
  5. Yellow repo.
  6. Cyan branch if not master or main.
  7. Timestamp in RPROMPT

Pretty picture

Gnome