Update nshell.sh

add function self_running