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

shellHook not working properly #27

Open
iogrt opened this issue Jan 24, 2023 · 3 comments
Open

shellHook not working properly #27

iogrt opened this issue Jan 24, 2023 · 3 comments

Comments

@iogrt
Copy link
Contributor

iogrt commented Jan 24, 2023

I'm not able to call functions, alias, etc defined in shellHook.
Example:

mkShell {
  shellHook = ''
   alias e="echo"
'';
}

Result:

e: command not found
@mastarija
Copy link

I also have this problem. Any known workaround or a solution?

@iogrt
Copy link
Contributor Author

iogrt commented Mar 17, 2023

My daily workaround is launching bash and nix-shell'ing inside it... not ideal at all

@dscottboggs
Copy link

Shell hooks work, they just run in bash before your shell is launched. Not sure how that can be fixed just thought I'd offer some clarification.

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

3 participants