Which operating system does the issue occur on?
MacOS 10.12.3
Default process for a shell on MacOS should use login -fp $USERNAME and not a direct invocation of /bin/bash because the user's environment gets set up differently with login. iTerm2.app and Console.app both use login and share a consistent environment for my user account but alacritty's environment differs with a buggy $PATH among other oddities.
For anyone else running into this issue, add the following to your alacritty.yml in your config location (mine is ~/.config/alacritty/alacritty.yml):
shell:
program: login
args: ["-fp", "USERNAMEHERE"]
Thank you for posting this. Alacritty was not lighting up my ~/.zsh/.zprofile file, but following your example I was able to get things working with:
shell:
program: /usr/local/bin/zsh
args:
- --login
I think a good example of how this can be fixed in Alacritty can be seen in how it was fixed in kitty: https://github.com/kovidgoyal/kitty/issues/247
Most helpful comment
For anyone else running into this issue, add the following to your
alacritty.ymlin your config location (mine is~/.config/alacritty/alacritty.yml):