This repository has been archived on 2020-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
2016-11-28 11:01:55 +01:00
|
|
|
# ~/.profile: executed by Bourne-compatible login shells.
|
|
|
|
|
|
|
|
if [ "$BASH" ]; then
|
2016-11-28 15:04:55 +01:00
|
|
|
if [ -f ~/.bashrc ]; then
|
|
|
|
. ~/.bashrc
|
|
|
|
fi
|
2016-11-28 11:01:55 +01:00
|
|
|
fi
|
|
|
|
|
2016-11-28 15:04:55 +01:00
|
|
|
# For those IP, auto-launch ZSH as default shell
|
|
|
|
IP_ZSH="<%= scope.lookupvar('root::ip_zsh') %>"
|
2016-11-28 11:01:55 +01:00
|
|
|
|
2016-11-28 15:04:55 +01:00
|
|
|
|
2016-11-28 15:06:53 +01:00
|
|
|
if [ "$(echo "${SSH_CLIENT}" | grep -E "${IP_ZSH}")" ] && [ $(command -v zsh) ]; then
|
2016-11-28 15:04:55 +01:00
|
|
|
exec zsh
|
2016-11-28 11:01:55 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
mesg n
|