caiogondim / bullet-train.zsh

:bullettrain_side: An oh-my-zsh shell theme based on the Powerline Vim plugin
MIT License
2.82k stars 383 forks source link

Installing Powerline for Linux Users #171

Open IshtarGate opened 7 years ago

IshtarGate commented 7 years ago

Could we add sudo apt-get install powerline to the readme instructions. This makes installation much easier for linux users and may not be obvious at first when trying to get the theme to work on linux. This may have also sidestepped the need to install tff-ancient-fonts separately.

From: http://askubuntu.com/questions/283908/how-can-i-install-and-use-powerline-plugin#answer-540730

Awesome theme, thank you, -James

caiogondim commented 7 years ago

It is on the requirements on README you have to install a special font

I don't use Linux as my dev machine, so I'm not familiar what it does Does it just install a bunch of different patched fonts to work with powerline?

Just for documentation purposes, below a list of powerline compatible fonts I like the most

IshtarGate commented 7 years ago

Thank you, I wasn't specific enough in my issue. I meant that I followed the README and attempted to install powerline and tff-ancient-fonts (ubuntu 16.04), but it wasn't enough to get it working properly. I had to take a few more steps to get if working (it wasn't trivial).

On my second installation of the Bullet-Train theme (on a second ubuntu 16.04 machine) I've found that sudo apt-get install powerline is much easier than hunting and installing powerline and tff-anchient-fonts yourself. I figured this would help some other linux user out. :)

I will do a third install of ZSH and Bullet-Train to see if sudo apt-get install powerline is the quickest fix.

To answer your question, I'm not sure what sudo apt-get install powerline pulls down.

I will look into Hasklig. :)

caiogondim commented 7 years ago

That is not ideal

You remember what exactly was missing? Because the only thing you need is a font with powerline symbols and the theme itself...

Please do a pull request with the missing steps or improvements you think we might need We can work on it together

caiogondim commented 7 years ago

Will only close this issue once we decide if we have to put or not more info on README for Linux users

dawikur commented 7 years ago

No further update. Should we close?

IshtarGate commented 7 years ago

Give me 2 more days on this. I'll make sure I test that my changes are necessary for a fresh install of Ubuntu.

-- Sincerely, James Hounshell Apprentice Software Developer MAXX Potential Email/Gchat: jameshounshell@gmail.com Cell: 540-550-0210

On Mon, Jan 2, 2017 at 12:28 PM, Dawid Kurek notifications@github.com wrote:

No further update. Should we close?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/caiogondim/bullet-train-oh-my-zsh-theme/issues/171#issuecomment-269999625, or mute the thread https://github.com/notifications/unsubscribe-auth/ALe1JHmraNSvbJL2ui9RmClXirbPwK9zks5rOTPYgaJpZM4KbbNO .

dawikur commented 7 years ago

Sure 👍

IshtarGate commented 7 years ago

I have confirmed that sudo apt install powerline does make for the easiest install of bullet train. I was able to install in no time. This removes the requirements (for linux users):

  • Powerline compatible fonts like Vim Powerline patched fonts, Input Mono or Monoid.
  • On Ubuntu like systems you'll need the ttf-ancient-fonts package to correctly display some unicode symbols that are not covered by the Powerline fonts above.

I might also recommend using a symlink from bullet-train.zsh-theme to the zsh custom themes folder, to make sure that a pull of the bullet-train repo automatically updates the theme. (i.e ln -s ~/path/to/bullet-train-oh-my-zsh-theme/bullet-train.zsh-theme ~/.oh-my-zsh/themes/bullet-train.zsh-theme)

Thank you for your time and thank your for your patience.

jameshounshell commented 7 years ago

I am user @IshtarGate. Just checking in on this. I realized that it's my bad that I never made a pull request for this fix.

@caiogondim I will make a pull request for this issue. I should check if my fix works on Arch and Fedora as well.