Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on macOS #9

Closed
nmajin opened this issue Apr 13, 2018 · 8 comments
Closed

Doesn't work on macOS #9

nmajin opened this issue Apr 13, 2018 · 8 comments

Comments

@nmajin
Copy link

nmajin commented Apr 13, 2018

Your ../pureline/pureline config declares dictionaries in bash with -A, so this doesn't work and even after correcting this the display looks like this:

screen shot 2018-04-12 at 9 14 39 pm

I even configured a Powerline font thinking that could be the issue but no luck.

@chris-marsh
Copy link
Owner

chris-marsh commented Apr 15, 2018

I think the associative arrays were introduced in bash v4, but it sounds like your having other issues too. Can we first establish which version of bash you are running/being evoked by pureline?

/bin/env bash --version

@nmajin
Copy link
Author

nmajin commented Apr 15, 2018 via email

@chris-marsh
Copy link
Owner

I'm on linux with bash 4.4.19, but have have compiled bash 3.2.57 to test and I can confirm similar results. An easy fix would be to upgrade bash with homebrew, but thats probably an excessive solution to get a nice prompt :-)

I'll play around with it and see how it goes.

@ajdegol
Copy link

ajdegol commented May 11, 2018

I had a similar issue. Upgrading bash seemed straightforward, following advice in this url https://johndjameson.com/blog/updating-your-shell-with-homebrew/.

Though I also had to chsh with my (non-root) user.

Looking forward to using this, the python version (powerline) is just a little too slow for shell.

@jchoksi-whitbread
Copy link

@ajdegol Indeed. I've tested a number of powerline prompt clones and tried to make my own one as well and I found Chris's prompt to be the best one so far. The code is modular and easy to understand / extend.

@msantoro12
Copy link

I would also love to see a mac compatible version. Upgrading bash in a corporate environment isn't very safe or plausible.

@amcgregor
Copy link

amcgregor commented Jun 14, 2019

As a note, Zsh is becoming the default shell for macOS as of Catalina. BASH itself is "widely compatible", but absolutely ancient on macOS. Edited to add, to be slightly more helpful: brew install bash — as of this writing, 5.0.7 is latest stable.

On the "in a corporate environment" situation, for a number of medical clinics we utilized ARD (Apple Remote Desktop) to deploy custom-built .pkg installers which install Homebrew packages, notably for those environments, firefox-esr (paired with the EMR software in use, OSCAR McMaster, and the most insane login script to move and symlink ~/Library/Application\ Support/Firefox to /tmp/firefox/$user because Firefox profiles and network home folders do not mix). My kingdom thanks Homebrew for its cellar/cask isolation.

@chris-marsh
Copy link
Owner

Closing as bash can be upgraded on macos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants