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

Execute a command at terminal startup #18

Open
bartbutenaers opened this issue Jan 12, 2020 · 2 comments
Open

Execute a command at terminal startup #18

bartbutenaers opened this issue Jan 12, 2020 · 2 comments

Comments

@bartbutenaers
Copy link
Owner

The Inject-node offers the ability to run the command at startup time:

image

It would be nice if we would have a similar checkbox to execute a command at terminal startup.

@YAMLcase
Copy link

I'd like that too. sure there's .bashrc or .zshrc but I'd like to cd into the node-red home only with this terminal but not anywhere else

@YAMLcase
Copy link

YAMLcase commented Mar 16, 2023

as a quick-n-dirty workaround: I notice NODE_RED_HOME is only present in the terminal, not in my normal sessions. Throwing this in .bashrc did the trick:

if [ -n $NODE_RED_HOME ]; then
    cd $HOME/.node-red
    # any other commands
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants