I'm writing a bash script, and I need to get from within the terminal current workspace URL and the cloud9 user email.
I've tried:
- Extracting the data from hostname variable, but it's not the workspace domain.
- Extracting it from the .c9 project folders, but the domain and user email doesn't seem to appear there
Any ideas how could I get these details from within the c9 terminal?
on hosted workspaces you can use
$C9_*
environment variables, try