--- /dev/null +++ ~/.bashrc @@ -0,0 +1,4 @@ +if ! ps T -o command | grep "^/data/data/com.termux/files/usr/bin/proot" > /dev/null; then + echo "starting chroot" + exec termux-chroot +fi