Nushell: Difference between revisions
m Improve wording around setting nu as a login shell |
Add a extra condition to invoke `nu` in `.bashrc`. If `bash` is invoked with `-l` AND `-c`, the original `.bashrc` will start `nu` instead of executing the command. It broke `niri-session` for me. `nu` should not be started if the command string is not empty. |
||
| Line 9: | Line 9: | ||
programs.bash.interactiveShellInit = '' | programs.bash.interactiveShellInit = '' | ||
if ! [ "$TERM" = "dumb" ]; then | if ! [ "$TERM" = "dumb" ] && [ -z "$BASH_EXECUTION_STRING" ]; then | ||
exec nu | exec nu | ||
fi | fi | ||