diff --git a/add_user.sh b/add_user.sh index ea71c85..484a374 100755 --- a/add_user.sh +++ b/add_user.sh @@ -55,6 +55,8 @@ if-shell "tmux has-session -t main 2>/dev/null" "detach" \ send-keys -t main:2 '/usr/local/bin/tylda-motd.sh' C-m; \ select-window -t main:0" +set-hook -g client-attached "send-keys -t main:2 '/usr/local/bin/tylda-motd.sh' C-m" + EOF cat << EOF > /home/$LOGIN/.profile