I want my shell to detect if human behavior, then show the prompt.
So, assume the file name is test.bash
#!/bin/bash if [ \"x\" != \"${PS1:-x}\" ] ;t
From help test:
help test
-t FD True if FD is opened on a terminal.