nuta / nsh

A command-line shell like fish, but POSIX compatible.
906 stars 34 forks source link

i have two issues, more details in the description. #8

Open justvipul opened 3 years ago

justvipul commented 3 years ago
  1. where can i find the default nshrc? its not in home.
  2. how can i use starship.rs as prompt in nsh?
nuta commented 3 years ago

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.

Surendrajat commented 2 years ago

@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.

nuta commented 2 years ago

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