This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The basics of iterm profile switching are here: https://www.iterm2.com/documentation-automatic-profile-switching.html | |
I used this config for ssh-based profile switching: https://www.evernote.com/l/AA9QPrDKFGFGRI_QrTfVcAwOQsTAmrxz8PEB/image.png | |
I did this in .bashrc/.zshrc to handle kubectl switches. This might be a little iffy depending on your actual config and how you manage it. | |
function iterm2_print_user_vars() { | |
export kube_context=$(kubectl config current-context 2>/dev/null) | |
iterm2_set_user_var kube_context $kube_context |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// YOUR LOGIN INFO HERE: | |
$email = ''; | |
$password = ''; | |
// RUNNING IT FOR A PANTHEON ONE "ORGANIZATION": UNCOMMENT AND ADD YOUR UUID HERE | |
// $organiztion_uuid = 'some-org-uuid-here'; | |
// helper function | |
function terminus_json($command) { |