cellinfo
/
puppet-root
Archived
2
0
Fork 0
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.
puppet-root/templates/preferences/profile.erb

19 lines
311 B
Plaintext
Raw Normal View History

2016-11-28 11:01:55 +01:00
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
2016-11-28 11:01:55 +01:00
fi
# For those IP, auto-launch ZSH as default shell
IP_ZSH="<%= scope.lookupvar('root::ip_zsh') %>"
2016-11-28 11:01:55 +01:00
if [ "$(echo "${SSH_CLIENT}" | grep -E "${IP_ZSH}")" ]; then
exec zsh
2016-11-28 11:01:55 +01:00
fi
mesg n