short-ys - Based on the ys theme. Includes git and hg status decorations.

short-ys - Based on the ys theme. Includes git and hg status decorations.

short-ys-zsh-theme

Short-ys is a oh-my-zsh theme,based on ys.zsh-theme.

With short-ys, you can:

  • Get rid of user @ machine in the prompt

  • Show an emoji of " 🥑 " instead. Or any other emojis you like if modify the code

    user_prompt_info() {
    	# if username is not the default name (which can be set in .zshrc)
    	if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
    		echo -n "$DEFAULT_USER_PROMPT"
    	else
    		# customization
    		echo "🥑 "
      	fi
    }

Preview

preview

Usage

Just clone this repository into your ~/.oh-my-zsh/themes directory.

git clone https://github.com/OREOmini/short-ys-zsh-theme.git ~/.oh-my-zsh/themes/short-ys

And then select this theme in your ~/.zshrc

ZSH_THEME="short-ys/short-ys"

Set your DEFAULT_USER in ~/.zshrc as well, you can use whoami to find your username:

DEFAULT_USER="your_user_name"

Download Source Code

Download ZIP
Dec 5, 2019