I\'ve a question on how to tell which shell the user is using. Suppose a script that if the user is using zsh, then put PATH to his .zshrc and if using bash sho
.zshrc
An alternative, might not work for all shells.
for x in $(ps -p $$) do ans=$x done echo $ans