Skip to content

[FEATURE] Setting environment variables outside of .nbrc #425

@Beethoven-n

Description

@Beethoven-n

I ran into a bit of an issue while testing nb show's options.
There's a --browse option, but it only uses $NB_BROWSER, which I've set to a TUI browser. I have a GUI browser at $NB_GUI_BROWSER, but I can't use it for this.
My thought was that I'd be able to just do NB_BROWSER=$NB_GUI_BROWSER nb show $id -b, but it seems .nbrc overrides the value I set.

Slightly unrelated, but I also tested this in nb shell and found I wasn't able to set them at all there.

__          _
\ \   _ __ | |__
 \ \ | '_ \| '_ \
 / / | | | | |_) |
/_/  |_| |_|_.__/
------------------
nb shell started. Enter ls to list notes and notebooks.
Enter help for usage information. Enter exit to exit.
nb❯ NB_BROWSER=librewolf
! Not found: NB_BROWSER=librewolf
nb❯

maybe this is down to .nbrc encouraging you export your variables instead of just setting them? idk 🤷

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions