Git Product home page Git Product logo

theme-default's Introduction


Default theme for Oh My Fish.

Install

$ omf theme default

Features

  • All the things you need to know about Git in a glance.
  • A subtle timestamp hanging out off to the right.
  • Previous command status.

Screenshot

Configuration

Only display the folder name:

  set -g theme_short_path yes

Display git stash indicator:

  set -g theme_stash_indicator yes

Do not display user@hostname when in an SSH session:

  set -g theme_ignore_ssh_awareness yes

License

MIT © bpinto et al

theme-default's People

Contributors

alex-grover avatar bast avatar bobthecow avatar bpinto avatar fidencio avatar moritzreiter avatar sagebind 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

theme-default's Issues

Unknown command 'git_is_repo'

Got this error after install this theme:

fish: Unknown command 'git_is_repo'
~/.config/fish/functions/fish_prompt.fish (line 29):
  if git_is_repo
     ^
in function 'fish_prompt'
	called on standard input

in command substitution
	called on standard input

This is my rodeo with fish so please let me know if this issue needs to be raised somewhere else

Add `git stash` indicator

This is a nice feature that the pure prompt has. It would be easy to adapt their implementation (here) into this prompt.

How it looks in pure, excuse the color scheme. Just installed it for this example screenshot
Screen Shot 2021-03-11 at 13 48 56

Not sure what the contribution process is for this repo, but happy to open a PR if this would be accepted!

Default theme calls hostname without checking or requiring

Description
While connected to a system with fish installed through SSH, the default theme calls 'hostname' without ever checking if it exists, or listing it as required.

At the beginning of each new line the terminal spits out an error, trying to fill-in the hostname of the ssh host.

fish: Unknown command: hostname
~/.local/share/omf/themes/default/functions/fish_prompt.fish (line 1): 
hostname -s
^~~~~~~^
in command substitution
	called on line 34 of file ~/.local/share/omf/themes/default/functions/fish_prompt.fish
in function 'fish_prompt'
in command substitution
 ~

Workaround
Install a hostname function
or
create hostname as a function to echo $hostname
or
set $theme_ignore_ssh_awareness = yes

Environment report

Oh My Fish version: 7
OS type: Linux
Fish version: fish, version 3.7.1
Git version: git version 2.45.2
Git core.autocrlf: no
Checking for a sane environment...
Your shell is ready to swim.

Make the "right prompt" optional

This theme offers a fish_right_prompt by default, and while we all agree that changing defaults is a bad thing, not having a way to easily configure that is also not optimal.

The current way to ignore the right prompt is creating an empty fish_right_prompt function in ~/.config/fish/functions/fish_mode_prompt.fish, which is far more complicated than setting up a configuration variable for this.

As at the end of day having or not the right prompt displayed is something that's up to the user's personal taste, let's expose an option so users can opt-out from that, if that's their wish.

Fish prompt in GNOME terminal

The fish prompt is displayed incorrectly using the GNOME terminal on Ubuntu 14.04. I also tried the Powerline fonts, but the same issue.

screenshot from 2016-01-12 16 02 20

Provide a way for the user to know they're logged as `root`

Currently, in case the user has decided to switch all the terminal instances they have access to to using fish with oh-my-fish, and they go for this very same theme in all instances (why not, right? this theme rocks! ;-)), they'll soon enough realise there's absolutely no indicator on whether you're running as root or not.

We should provide some differentiation, something that catches the user's attention, when they're running as root.

I'm opening the issue and not yet providing a PR as I think how we provide this is something that should be discussed first, as the default theme is quite lean and we don't necessarily want to make it too much.

@bpinto @scorphus, ideas on how to approach this one?

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.