script for OSX to open new tabs with custom names and run specified commands
modify and save launchtabs.sh to /usr/local/bin as launchtabs
then chmod +x /usr/local/bin/launchtabs
to create function "tabname":
-
paste below into .bash_profile or .bashrc
-
save & close
-
type 'source [path to profile]'
-
now rename tab by typing 'tabname [tab title]'
tabname() { TABSTRING="\e]1;$1\a" printf $TABSTRING }