Theme for the fish shell. Based on https://github.com/nelsonjchen/omf-theme-nelsonjchen
Go to file
Carlos Galindo 2ce2815a4c red user and hostname for root sessions 2021-02-06 19:04:09 +01:00
LICENSE Update to new OMF format 2015-09-27 02:51:48 -07:00
README.md update readme 2021-02-06 18:54:52 +01:00
fish_greeting.fish Update to new OMF format 2015-09-27 02:51:48 -07:00
fish_prompt.fish red user and hostname for root sessions 2021-02-06 19:04:09 +01:00
fish_right_prompt.fish set date to d/m/y format 2021-02-06 18:54:17 +01:00
fish_title.fish Add title setting support. 2015-10-12 21:41:30 -07:00

README.md

nelsonjchen theme for Oh My Fish. Based on re5et in Oh-My-Zsh.

Install

$ mkdir -p ~/.config/fish/{functions,themes}
$ cd ~/.config/fish
$ git clone https://git.cgj.es/kauron/fish-theme-nelsonjchen.git themes/nelsonjchen
$ cd functions
$ for i in ../themes/nelsonjchen/*.fish;
     ln -sf $i
  end

Features and Differences

  • Pretty colors
  • Two line prompt
  • Git Prompt using off-the-shelf fish functions
    • Note that the symbology, colors, and features are more than the zsh version and they don't match up 1-to-1. For example, checking out a tag will show the tag name in fish but the re5et version in zsh will simply show the commit ID. This was one such freebie amongst many I just left in while porting since the fish script was giving it to me for free anyway. It is still pretty close though.
  • Red user prompt if root
  • ~12~ 24 hour clock
    • re5et: 24 hour clock
  • DD MM YY date format
    • re5et: YY MM DD date format
  • Title Setting to the prompt_pwd function in fish for screen, tmux, and non-terminal multiplexer.

Omissions from the re5et version

  • Trimming down the working directory display only works on ~. The original re5et prompt would also trim based on the current environment variables set. For example, if you had the environment variable FOO set to /usr/local and you did cd /usr/local, you would see $FOO/ in the prompt as the current working directory. I'm not sure how I would get this working. fish does appear to have a condensation function but it goes beyond simple environment variable replacement and I can't figure out how to turn it off.

Screenshot

License

MIT © Nelson Chen et al