@@ -166,7 +166,7 @@ export const ConnectionButton = React.memo(
166166 React . forwardRef < HTMLDivElement , ConnectionButtonProps > (
167167 ( { connection, changeConnModalAtom } : ConnectionButtonProps , ref ) => {
168168 const [ connModalOpen , setConnModalOpen ] = jotai . useAtom ( changeConnModalAtom ) ;
169- const isLocal = util . isBlank ( connection ) ;
169+ const isLocal = util . isLocalConnName ( connection ) ;
170170 const connStatusAtom = getConnStatusAtom ( connection ) ;
171171 const connStatus = jotai . useAtomValue ( connStatusAtom ) ;
172172 let showDisconnectedSlash = false ;
@@ -178,9 +178,15 @@ export const ConnectionButton = React.memo(
178178 } ;
179179 let titleText = null ;
180180 let shouldSpin = false ;
181+ let connDisplayName : string = null ;
181182 if ( isLocal ) {
182183 color = "var(--grey-text-color)" ;
183- titleText = "Connected to Local Machine" ;
184+ if ( connection === "local:gitbash" ) {
185+ titleText = "Connected to Git Bash" ;
186+ connDisplayName = "Git Bash" ;
187+ } else {
188+ titleText = "Connected to Local Machine" ;
189+ }
184190 connIconElem = (
185191 < i
186192 className = { clsx ( util . makeIconClass ( "laptop" , false ) , "fa-stack-1x" ) }
@@ -238,7 +244,11 @@ export const ConnectionButton = React.memo(
238244 } }
239245 />
240246 </ span >
241- { isLocal ? null : < div className = "connection-name ellipsis" > { connection } </ div > }
247+ { connDisplayName ? (
248+ < div className = "connection-name ellipsis" > { connDisplayName } </ div >
249+ ) : isLocal ? null : (
250+ < div className = "connection-name ellipsis" > { connection } </ div >
251+ ) }
242252 </ div >
243253 ) ;
244254 }
0 commit comments