[fix] toki-setup: fix compatibility to zsh
Moved check for shell to the top and implemened shell aware checks if the script was sourced or executed. Can now be source from bash or zsh without errors.
Edited by Johannes Wiesboeck
Moved check for shell to the top and implemened shell aware checks if the script was sourced or executed. Can now be source from bash or zsh without errors.