File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# temporalctx
22
3- An oh-my-zsh plugin for switching Temporal contexts (` ~/.temporal/config ` ) similar to ` kubectx ` .
3+ An oh-my-zsh plugin for switching Temporal contexts (` ~/.temporal/config.yml ` ) similar to ` kubectx ` .
44
55## Commands
66
Original file line number Diff line number Diff line change 5656 fi
5757fi
5858
59- config_file=" ${TEMPORAL_CONFIG:- $HOME / .temporal/ config} "
59+ config_file=" ${TEMPORAL_CONFIG:- $HOME / .temporal/ config.yml } "
6060mkdir -p " $( dirname " $config_file " ) "
6161if [[ ! -f " $config_file " ]]; then
6262 cat > " $config_file " << 'YAML '
Original file line number Diff line number Diff line change 11# temporalctx oh-my-zsh plugin
2- # Switch between Temporal contexts defined in ~/.temporal/config.
2+ # Switch between Temporal contexts defined in ~/.temporal/config.yml.
33
44_temporalctx_config_file () {
55 if [[ -n " $TEMPORAL_CONFIG " ]]; then
66 print -r -- " $TEMPORAL_CONFIG "
77 else
8- print -r -- " $HOME /.temporal/config"
8+ print -r -- " $HOME /.temporal/config.yml "
99 fi
1010}
1111
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ custom1="$tmp_root/custom1"
3232mkdir -p " $home1 " " $custom1 "
3333PATH=" $tmp_root /bin:$PATH " HOME=" $home1 " ZSH_CUSTOM=" $custom1 " " $REPO_ROOT /install.sh" > " $tmp_root /install1.out" 2> " $tmp_root /install1.err"
3434[[ -L " $custom1 /plugins/temporalctx" || -d " $custom1 /plugins/temporalctx/.git" ]] || fail " default install should target ZSH_CUSTOM/plugins/temporalctx"
35- [[ -f " $home1 /.temporal/config" ]] || fail " installer should create default config"
35+ [[ -f " $home1 /.temporal/config.yml " ]] || fail " installer should create default config"
3636log " case passed: default target"
3737
3838# Test: custom target dir appends /temporalctx when needed.
You can’t perform that action at this time.
0 commit comments