Giter VIP home page Giter VIP logo

ohmyzsh-theme-passion's Introduction

ohmyzsh-theme-passion

Introduction

An oh-my-zsh theme; demo.png

Feature

  • real time prompt;
  • command running time cost prompt;
  • command running error hint;
  • git status prompt;

Usage

Basic Zsh Theme

Install

  1. clone repo: git clone https://github.com/ChesterYue/ohmyzsh-theme-passion;
  2. copy theme: cp ./ohmyzsh-theme-passion/passion.zsh-theme ~/.oh-my-zsh/themes/passion.zsh-theme;
  3. modify rc: open ~/.zshrc find ZSH_THEME edit to ZSH_THEME="passion";
  4. execute rc: source ~/.zshrc;

Trouble Shooting

macOS, command not found: gdate
  • passion.zsh-theme depends on cmd gdate to get current time in milliseconds. get gdate on macOS by running brew install coreutils then source ~/.zshrc;
  • see also: #12;
Linux, command not found: bc
  • passion.zsh-theme depends on cmd bc to calculate the command running time cost. get bc on Linux then source ~/.zshrc;
  • see also: #13;
Centos 7, shell exit

Extra Preferences

Zsh Plugins

  1. zsh-autosuggestions;
  2. zsh-syntax-highlighting;

iTerm2 Preferences

Color
Status Bar
  • iTerm2: settings -> Appearance && settings -> Profiles -> Session -> Configure Status Bar status_0.png status_1.png
Font
  • install JetBrains Mono;
  • iTerm2: settings -> Appearance && settings -> Profiles -> Text -> Font font.png

ohmyzsh-theme-passion's People

Contributors

chesteryue avatar lrondc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ohmyzsh-theme-passion's Issues

Get this error message "...parse error near /-n"

Hi installed ZSH and copied the passion.zsh-theme to the /custom/theme folder. installed coreutil, also reinstalled it. still get the error message

.oh-my-zsh/custom/themes/passion.zsh-theme:8: parse error near \n'`

when i relaunch with source ~/.zshrc

ans solution?

greetings to shenzhen!

Ben

9: parse error near `\n'

Trying to use 'passion'

Update ~/.zshrc to include "passion"
refresh with source ~/.zshrc, get error:

.oh-my-zsh/custom/themes/passion.zsh-theme:9: parse error near `\n'

coreutils are installed.

Gdate installed but still getting error message

I'm still getting the following error message:

/Users/.../.oh-my-zsh/custom/themes/passion.zsh-theme:6: command not found: gdate

despire gdate being installed (verified by running gdate and getting date output).

When I try running brew install coreutils;, I get Warning: coreutils 8.32 is already installed and up-to-date.

Minor fix: Incorrect reference to zsh dotfile in README

There are several incorrect references to the zsh dotfile within the readme (at least for MacOS users):

i.e. source ~./zshrc' should be source ~/.zshrc'.

There are only a handful of references but fixing this should prevent needless troubleshooting for new users. Happy to perform the fix on a feature branch and create a PR, if granted permissions.

Feature Suggestion : Customization and Tweaking

Hello, Mister. I interested with this theme and I'm now use it. But, I want to give suggestions to this theme because I like it. I listed my suggestions below.

  • Add Customization manual on Readme
  • Tweaks for this theme, such as color, longer shell prompt (such as text "user in hostname"). This theme can used as your reference
  • Add some changes to get different normal user with root on prompt (I install it in root too but I's confusing to differentiate between normal user with root user)

Some screenshot for explain my suggestion
Screenshot from 2023-05-08 08-48-44

My system info :
OS : Pop! OS 22.04 based on Ubuntu 22.04 LTS
Zsh : v5.8.1
OhMyZsh : master (5a3f565)

Thanks for read my issue. I glad to waiting new release for this theme

how can I remove times and cmd?

In the second line after input a command, I got local time,cost time ,input time and input cmd, how can I only get cost and remove other informations ?

real_time function updates terminal every second

I have kitty terminal emulator(I do not know if this causes the problem) and oh-my-zsh with this theme installed.
When I try to select and copy things from the terminal screen, it automatically deselects every second and I am having hard time.
Now I want to remove real_time function from the theme file but I am not sure which lines to delete.
Which line automatically updates the screen? or do we have another way to disable automatic refreshing of the terminal?

I use Ubuntu 22.04 with gdm.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.