You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using "Advanced SSH & Web Terminal" from a while and wanted to customize it with some shell aliases.
The terminal that is opened in a web page through the addon page is functionning ok: zsh shell, with all oh-my-zsh customizations and aliases, and custom aliases (see below).
But the terminal from another computer just gives a sh shell (command echo $SHELL) and no customizations...
When I'm refering to "computer terminal", I mean an access to HA through the ssh client of another computer from the LAN.
On other systems than HA, when I jump from one computer to another trough ssh, each new terminal does well init with local options (ie, by reading some .shellrc or .shellprofile file).
I don't get what I'm missing in the addon configuration so that the computer terminal behaves like the web terminal.
I've tried so far:
Access with ssh from different type of computers (Mac, Linux, Synology) to compare behaviors.
Disabling zsh in the config page: The web terminal switch well to bash. File .bashrc is not read at login but .bash_profile is. But the computer terminal is still on sh.
Custom init_commands with source ~/config/bash/shell_aliases, doesn't work at all in both terminals
Custom aliases in the file: ~/.oh-my-zsh/custom/example.sh, works for web terminal not the computer terminal
Custom aliases in the file: ~/.zshrc, works for web terminal not the computer terminal
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I'm using "Advanced SSH & Web Terminal" from a while and wanted to customize it with some shell aliases.
The terminal that is opened in a web page through the addon page is functionning ok: zsh shell, with all oh-my-zsh customizations and aliases, and custom aliases (see below).
But the terminal from another computer just gives a sh shell (command
echo $SHELL
) and no customizations...When I'm refering to "computer terminal", I mean an access to HA through the ssh client of another computer from the LAN.
On other systems than HA, when I jump from one computer to another trough ssh, each new terminal does well init with local options (ie, by reading some
.shellrc
or.shellprofile
file).I don't get what I'm missing in the addon configuration so that the computer terminal behaves like the web terminal.
I've tried so far:
.bashrc
is not read at login but.bash_profile
is. But the computer terminal is still on sh.init_commands
withsource ~/config/bash/shell_aliases
, doesn't work at all in both terminals~/.oh-my-zsh/custom/example.sh
, works for web terminal not the computer terminal~/.zshrc
, works for web terminal not the computer terminalAny advice appreciated!
Thanks
Beta Was this translation helpful? Give feedback.
All reactions