Add TRITON_DC to shell prompt
This commit is contained in:
parent
c4fa5fd5d0
commit
1b15651865
|
@ -13,10 +13,12 @@ triton_account_uuid="$(triton account get --json | json id)"
|
|||
if env | grep -q "SDC_URL=https://api.greenbaum.cloud"; then
|
||||
export TRITON_CNS_SEARCH_DOMAIN_PUBLIC="${triton_account_uuid}.cgn-1.greenbaum.zone"
|
||||
export TRITON_CNS_SEARCH_DOMAIN_PRIVATE="${triton_account_uuid}.cgn-1.int.greenbaum.zone"
|
||||
export TRITON_DC=cgn-1
|
||||
fi
|
||||
if env | grep -q "SDC_URL=https://lev-1.api.greenbaum.cloud"; then
|
||||
export TRITON_CNS_SEARCH_DOMAIN_PUBLIC="${triton_account_uuid}.lev-1.greenbaum.zone"
|
||||
export TRITON_CNS_SEARCH_DOMAIN_PRIVATE="${triton_account_uuid}.lev-1.int.greenbaum.zone"
|
||||
export TRITON_DC=lev-1
|
||||
fi
|
||||
|
||||
export MANTA_URL=https://eu-central.manta.greenbaum.cloud
|
||||
|
|
|
@ -22,7 +22,7 @@ pkgs.devshell.mkShell {
|
|||
fi
|
||||
'';
|
||||
PS1.text = ''
|
||||
PS1='\[\033[38;5;202m\][$TRITON_PROFILE@tritonshell]$(rel_root)\$ \[\033[0m\]'
|
||||
PS1='\[\033[38;5;202m\][$SDC_ACCOUNT@$TRITON_DC]$(rel_root)\$ \[\033[0m\]'
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue