We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9bb5b2a + 73c00d5 commit bde2424Copy full SHA for bde2424
1 file changed
main.go
@@ -624,6 +624,18 @@ This enables:
624
- Tab completion for commands and branch names`,
625
Run: func(cmd *cobra.Command, args []string) {
626
fmt.Print(`wt() {
627
+ # Check if command needs interactive mode (no args for co/checkout/rm/remove/pr/mr)
628
+ if [ "$#" -eq 1 ]; then
629
+ case "$1" in
630
+ co|checkout|rm|remove|pr|mr)
631
+ # Run interactively without capturing output
632
+ command wt "$@"
633
+ return $?
634
+ ;;
635
+ esac
636
+ fi
637
+
638
+ # Normal mode with output capture for auto-cd
639
local output
640
output=$(command wt "$@")
641
local exit_code=$?
0 commit comments