Commit 1d1eeed
refactor: simplify detect_terminal by removing unused host_terminal variable (#11)
tmux.sh already detects the host terminal on its own, so the main
detector doesn't need to track it. Return immediately on first match.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent c6afb27 commit 1d1eeed
1 file changed
Lines changed: 6 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 90 | | |
94 | 91 | | |
95 | 92 | | |
96 | | - | |
97 | 93 | | |
98 | 94 | | |
99 | | - | |
100 | | - | |
101 | 95 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 96 | + | |
106 | 97 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
118 | 103 | | |
119 | 104 | | |
120 | 105 | | |
| |||
0 commit comments