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

powerline-shell config.json file! #13

Open
amenpunk opened this issue Jun 13, 2019 · 2 comments
Open

powerline-shell config.json file! #13

amenpunk opened this issue Jun 13, 2019 · 2 comments

Comments

@amenpunk
Copy link

dummy issue

this is my configuration file

{
  "segments": [
    "virtual_env",
    "username",
    "ssh",
    "cwd",
    "git",
    "hg",
    "jobs",
    "root"
  ],
  "cwd": {
    "max_depth": 2,
    "full_cwd": true
  },
  "patched" :{
    "lock" : "u'\uE0A2'",
    "network" :" u'\uE0A2'",
    "separator" : "'u'\uE0B8'",
    "separator_thin":"u'\uE0B9'"
  }
}

but don't work, nerd fonts works on my vim configuration but I do not get that works on my shell
can u share ur .json config example please?

@mbtamuli
Copy link

mbtamuli commented Nov 3, 2019

I came looking for instructions on the same.
After some digging I found the following.

You need to edit the __init.py__ file. You can find it in the installed directory. I installed using pip so I used this command to find the base directory,

$ python -m site --user-base
/home/user/.local
$ cd ~/.local/lib/python2.7/site-packages/powerline_shell

Then edit these lines in the __init.py__ using vim or your whatever is favorite editor! 😉

vim __init.py__

Not sure if this is the best way, but it works for me.

@ryanoasis maybe add the steps and/or example to the README?

@mbtamuli
Copy link

mbtamuli commented Nov 3, 2019

I saw this PR in the powerline-shell repo - b-ryan/powerline-shell#455 which might make it easier.

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

2 participants