GithubHelp home page GithubHelp logo

base16-fish's Introduction

base16-fish

Base16 theme switcher for fish shell

Installation

  1. If you have fisher,
$ fisher install tomyun/base16-fish
  1. Run your choice of base16-* function
$ base16-oceanicnext

Screenshot

Screenshot

FAQ

  1. Why not just use base16-shell?

base16-shell is great for bash/zsh, but unable to support syntax highlighting colors in fish that ends up with incorrect coloring of texts typed in the prompt. base16-fish fixes this problem by explicitly setting color variables in native fish shell scripts. With that, no separate helper required in config.fish. No configuration file (.base16_theme) stored in your home directory. Theme switching commands (base16-*) are now fish functions that work more nicely with tab completetion.

base16-fish's People

Contributors

oxyc avatar tomyun 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

Watchers

 avatar  avatar  avatar

base16-fish's Issues

making it work with tmux

Hey @tomyun, thanks a lot for this awesome plugin.

I have an issue with switching themes using tmux, I tired few ways to fix this but without any luck

I found that somehow, according to a comment in color/*.conf `Tell tmux to pass the escape sequences through I set the following overrides but no luck.

like

set -as terminal-overrides ',tmux*:Ms=\\E]52;%p1%s;%p2%s\\007'
set -as terminal-overrides ',screen*:Ms=\\E]52;%p1%s;%p2%s\\007'

Thanks

Vim colors are not updated

Hi!

I have the problem that when using your base16 function and removing
# Base16 Shell if status --is-interactive set BASE16_SHELL "$HOME/.config/base16-shell" source "$BASE16_SHELL/profile_helper.fish" end
from config.fish my colors in vim are not updated. Is there any fix for this?

Nice plugin and great work :)

conf.d script overwrites local modifications

It would be nice to choose a theme with a base16-<chosentheme> function, then tweak a few colors. In my case I want to run:

> base16-snazzy
> set -U fish_color_autosuggestion a5a5a9
> set -U fish_color_comment a5a5a9
> set -U fish_color_param white

However with conf.d/base16.fish whenever I open a new shell, this plugin resets all the colors. I would expect the plugin to set the universal variables once when you call base16-<chosentheme>, not every time you open a new shell.

Thoughts? And thank you for the plugin!

Errors after login in tty

Hi,

after I login in tty, I get some errors:

~/.config/fish/config.fish (line 43):
  function put_template: test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; 
....

I did not include everything because I needed to type it myself :)

Everything works finde after I start x and use a terminal, but it is still annoying to see this error after login in tty.

Why loading only for login shells?

Hello, I started using this plugin and I noticed that the theme was not persisted across terminal restart.

It is caused by the status --is-login check, which in my case is always false. I'm on elementary Hera.

The check has been introduced with this commit 2a99033.

My workaround has been adding

if test -n "$base16_theme"
  base16-$base16_theme
end

in my config.fish, and I'm wondering why that changed has been introduced, as in my case it seems it broke the integration.

Thanks for the plugin and your help!

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.