Skip to content

Commit f58bc6b

Browse files
committed
Enable git credential prompts with osxkeychain caching
1 parent e594ce6 commit f58bc6b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/services/pty-manager.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ function shellEnv(): Record<string, string> {
3636
env.TERM = 'xterm-256color'
3737
env.TERM_PROGRAM = 'vbcdr'
3838
env.VBCDR_API = `http://127.0.0.1:${HTTP_API_PORT}`
39-
env.GIT_TERMINAL_PROMPT = '0'
4039
env.GIT_CONFIG_COUNT = '1'
4140
env.GIT_CONFIG_KEY_0 = 'credential.helper'
42-
env.GIT_CONFIG_VALUE_0 = ''
41+
env.GIT_CONFIG_VALUE_0 = 'osxkeychain'
4342
if (!env.PATH || !env.PATH.includes('/usr/local/bin')) {
4443
try {
4544
const loginPath = execSync('/bin/bash -ilc "echo $PATH"', { encoding: 'utf-8' }).trim()

0 commit comments

Comments
 (0)