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
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