19 lines
336 B
Plaintext
19 lines
336 B
Plaintext
# ~/.profile: executed by Bourne-compatible login shells.
|
|
|
|
if [ "$BASH" ]; then
|
|
if [ -f ~/.bashrc ]; then
|
|
. ~/.bashrc
|
|
fi
|
|
fi
|
|
|
|
# For those IP, auto-launch ZSH as default shell
|
|
IP_ZSH="<%= scope.lookupvar('root::ip_zsh') %>"
|
|
|
|
|
|
if [ "$(echo "${SSH_CLIENT}" | grep -E "${IP_ZSH}")" ] && [ $(command -v zsh) ]; then
|
|
exec zsh
|
|
fi
|
|
|
|
|
|
mesg n
|