nsh icon indicating copy to clipboard operation
nsh copied to clipboard

i have two issues, more details in the description.

Open justvipul opened this issue 3 years ago • 3 comments

  1. where can i find the default nshrc? its not in home.
  2. how can i use starship.rs as prompt in nsh?

justvipul avatar May 29 '21 05:05 justvipul

Hi,

  1. where can i find the default nshrc? its not in home.

Similar to .bashrc, you need to create .nshrc yourself.

  1. how can i use starship.rs as prompt in nsh?

It won't work for now because some features such as PS1 are not yet supported (implementing required features would be trivial though).

JFYI nsh has its own prompt syntax.

nuta avatar May 29 '21 11:05 nuta

@nuta does it support xdg base dir convention for config files as fish does? Fish has all the config in ~/.config/fish/config.fish with config.d support.

Surendrajat avatar Oct 27 '21 11:10 Surendrajat

@Surendrajat Yes nsh loads $XDG_CONFIG_HOME/nsh/nshrc if it exists.

nuta avatar Oct 27 '21 13:10 nuta