File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11NAME =kubectl-tmux-exec
2- VERSION =0.0.4
2+ VERSION =0.1.0
33
44OUTPUT_DIR =output
55RELEASE_FILE_NAME =$(NAME ) -$(VERSION ) .tar.gz
Original file line number Diff line number Diff line change @@ -189,9 +189,7 @@ function main() {
189189 ;;
190190 -* )
191191 if [[ " ${# opt} " -eq 2 ]]; then
192- if array_contains " ${opt: 1} " " ${KUBECTL_NOARG_SHORT_OPTS[@]} " ; then
193- kubectl_opts+=(" ${opt} " )
194- elif array_contains " ${opt: 1} " " ${KUBECTL_SHORT_OPTS[@]} " ; then
192+ if array_contains " ${opt: 1} " " ${KUBECTL_SHORT_OPTS[@]} " ; then
195193 shift
196194 kubectl_opts+=(" ${opt} " " $1 " )
197195 else
@@ -281,12 +279,13 @@ function main() {
281279 else
282280 tmux_commands+=(' split-window' " ${cmd} " ' ;' )
283281 fi
282+ tmux_commands+=(' select-layout' " ${tmux_layout} " ' ;' )
284283 done
285284
286285 if [[ " ${remain_on_exit} " -eq 1 ]]; then
287286 tmux_commands+=(' set-option' ' remain-on-exit' ' on' ' ;' )
288287 fi
289- tmux_commands+=(' select-layout ' " ${tmux_layout} " ' ; ' ' setw' ' synchronize-panes' ' on' ' ;' )
288+ tmux_commands+=(' setw' ' synchronize-panes' ' on' ' ;' )
290289
291290 exec tmux " ${tmux_commands[@]} "
292291}
You can’t perform that action at this time.
0 commit comments