Skip to content

yunwen-wang/short-ys-zsh-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Zsh ys theme with customized "user@machine" option

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published