Show host and session name in tmux status line.
[profile.git] / opt / bin / became
1 #!/bin/bash
2
3 file="${TMPDIR:-/tmp}/$SUDO_USER.became.$USER.$RANDOM.$$"
4 ( builtin umask 077; echo "unset ENV POSIXLY_CORRECT; set +o posix" > "$file"; cat >> "$file"; echo "/bin/rm -f '$file'" >> "$file" )
5 exec </dev/tty env ENV="$file" POSIXLY_CORRECT=1 /bin/bash
6 exit 111