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

customize prompt #65

Open
cj opened this issue Jun 15, 2016 · 4 comments
Open

customize prompt #65

cj opened this issue Jun 15, 2016 · 4 comments

Comments

@cj
Copy link

cj commented Jun 15, 2016

what would be the best way to customize the prompt, including changing the color scheme?

@donnemartin
Copy link
Owner

Thanks for the feature request. Currently, this isn't something the user can configure.

@leoj3n
Copy link

leoj3n commented Jul 31, 2016

Solarized Light looks like this:

image

Still useable but not very pretty.

@arpit1997
Copy link

arpit1997 commented Oct 19, 2016

I try to go through the code and found some hints about this. I need some reviews about my opinions

In config.py function def _init_colors(self):


    def _init_colors(self):
        """Initialize colors to their defaults."""
        self.clr_primary = None
        self.clr_secondary = 'green'
        self.clr_tertiary = 'cyan'
        self.clr_quaternary = 'yellow'
        self.clr_bold = 'cyan'
        self.clr_code = 'cyan'
        self.clr_error = 'red'
        self.clr_header = 'yellow'
        self.clr_link = 'green'
        self.clr_list = 'cyan'
        self.clr_message = None
        ...................................

we can put a json file containing user defined colours for the cli and then load this in the function mentioned above, so user can modify however he/she wants.
Anyone review and comment on this 😄

@donnemartin
Copy link
Owner

@arpit1997, you can change those colors already, please check out customizable-highlighting.

I think the discussion on changing the prompt is related to this section of the code. I'd like to try to fix this as part of the xonsh dependency ticket.

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

No branches or pull requests

4 participants