osx - How to get default shell -


we can run chsh -s /usr/local/bin/zsh set new default shell. there command can run know shell is?

i don’t mean having terminal open , running command know shell we’re in, mean in example above, if i’m in terminal /bin/bash open, should run /usr/local/bin/zsh if it’s current default shell?

you can use following command echo $shell


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -