Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,18 @@ This enables:
- Tab completion for commands and branch names`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Print(`wt() {
# Check if command needs interactive mode (no args for co/checkout/rm/remove/pr/mr)
if [ "$#" -eq 1 ]; then
case "$1" in
co|checkout|rm|remove|pr|mr)
# Run interactively without capturing output
command wt "$@"
return $?
;;
esac
fi

# Normal mode with output capture for auto-cd
local output
output=$(command wt "$@")
local exit_code=$?
Expand Down
Loading