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 string of nix repl #8156

Open
Freed-Wu opened this issue Apr 3, 2023 · 2 comments
Open

customize prompt string of nix repl #8156

Freed-Wu opened this issue Apr 3, 2023 · 2 comments
Labels
feature Feature request or proposal repl The Read Eval Print Loop, "nix repl" command and debugger

Comments

@Freed-Wu
Copy link
Contributor

Freed-Wu commented Apr 3, 2023

Is your feature request related to a problem? Please describe.
Can nix repl has a PS1 like https://github.com/vim-airline/vim-airline or https://github.com/romkatv/powerlevel10k?

Describe the solution you'd like
~/.config/nix/nix.conf provide an option like bash's PS1, or a nix expr which will be calculated before output PS1

Priorities

I think it is not important because it will not effect the function and it just allow user to customize the prompt string to beautify and provide some information (like nix version, current working path or time)

Add 👍 to issues you find important.

@Freed-Wu Freed-Wu added the feature Feature request or proposal label Apr 3, 2023
@roberth roberth added the repl The Read Eval Print Loop, "nix repl" command and debugger label Jun 2, 2023
@SDAChess
Copy link

Hello, I am interested in implementing this feature, can we discuss what and how you would want that? I'm thinking that a nix expression might not be a good idea since it is going into the nix.conf so a bash expression would make more sense. Any thoughts?

@Freed-Wu
Copy link
Contributor Author

Both are OK. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal repl The Read Eval Print Loop, "nix repl" command and debugger
Projects
None yet
Development

No branches or pull requests

3 participants