Giter Club home page Giter Club logo

theme-fishbone's Introduction

fishbone

A clean theme for fish shell managed by Oh my fish



Example

Installation

omf update  # Just if your omf installation is old. Avoids missing the package
omf install fishbone

omf (Oh my fish) is a package manager for fish shell. Just like pip is for Python and gem is for Ruby

Features

  • Only displays an abbreviatted path on left side;
  • Displays the current time at right;
  • On git repositories shows its current branch and modifications on right side;
  • For Python users, if there is an active virtualenv, it will be displayed at right between brackets;
  • Colon at left side becames red if last command fails;
  • At start up, shows user name, date, uptime, informations about OS, CPU, memory and network;

Project structure

We have two branches:

  • master: Where the necessary files for theme is;
  • animation: There is two adicional files (animation.cxf, fishbone.gif) that is used for theme example at README.md file.

The theme files are separated as follows:

  • fish_prompt.fish: Has the function to print the prompt line;
  • fish_right_prompt.fish: Prints the right side of the shell prompt;
  • fish_greeting.fish: Prints the welcome message at shell session start up;

Contributing

We are not stringent with contributions. Just fork the project, do some modifications and send us a Pull request : ) Bugs and improvements can be reported/suggested as issues.

License

MIT © pantuza et al

theme-fishbone's People

Contributors

bobthecow avatar dnsaoki2 avatar pantuza avatar scorphus 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

theme-fishbone's Issues

how to remove the greeting message properly?

image

I've removed ~/.local/share/omf/themes/fishbone/functions/fish_greeting.fish
but it somehow messes up the right prompt for the first line, once i pressed enter it turns back normal

image

Move away from fish_greeting for initialization

Using fish_greeting to define functions and run initialization code for themes should be considered unreliable and breaks in the following cases:

  • User switches themes during the middle of a terminal session. The shell is not reloaded, and so fish_greeting is not executed.
  • User has a custom fish_greeting variable or function, overriding the theme's default greeting. Again, the theme's fish_greeting is not executed.

The recommended approach is to lazy-load defaults using set -q ...; or set -g ... and to place functions in individual files in a functions directory.

See the discussion in oh-my-fish/oh-my-fish#483.

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.