Skip to content

Commit 4c7ccf0

Browse files
authored
Merge pull request #102 from Avivbens/git-npm-addons
git npm addons
2 parents 9a1dcf7 + 4e7d5db commit 4c7ccf0

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

src/commands/install/config/apps-groups/git.ts

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,26 @@ export const GIT_APPS: Readonly<IAppSetup[]> = [
3737
deps: ['Git'],
3838
},
3939
{
40-
name: 'Increase credential cache timeout',
41-
description: 'Increase the cache time for using your credentials from Keychain - 1 month',
40+
name: 'MacOS Keychain store credentials for HTTPS remotes',
41+
description: 'Use macOS Keychain to store credentials',
4242
group: 'git',
43-
openUrl: () => `open https://git-scm.com/docs/git-credential-cache`,
43+
openUrl: () => `open https://git-scm.com/docs/gitcredentials`,
4444
commands: () => [
4545
// avoid lock for other `git config` options
4646
'sleep 2',
47-
`git config --global credential.helper 'cache --timeout 2592000'`,
47+
`git config --global credential.helper osxkeychain`,
48+
],
49+
deps: ['Git'],
50+
},
51+
{
52+
name: 'Disable SSL',
53+
description: 'Disable SSL for Git operations',
54+
group: 'git',
55+
openUrl: () => `open https://git-scm.com/docs/git-config#Documentation/git-config.txt-httpsslVerify`,
56+
commands: () => [
57+
// avoid lock for other `git config` options
58+
'sleep 3',
59+
`git config http.sslVerify "false"`,
4860
],
4961
deps: ['Git'],
5062
},
@@ -56,7 +68,7 @@ export const GIT_APPS: Readonly<IAppSetup[]> = [
5668
openUrl: () => `open https://git-scm.com/docs/git-push#Documentation/git-push.txt-pushautoSetupRemote`,
5769
commands: () => [
5870
// avoid lock for other `git config` options
59-
'sleep 3',
71+
'sleep 4',
6072
`git config --global --bool push.autoSetupRemote true`,
6173
],
6274
deps: ['Git'],

zsh/extends/.zshrc.extends.npm.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ alias nsd="npm run start:dev"
55
alias nb="npm run build"
66
alias nt="npm run test"
77
alias nte="npm run test:e2e"
8+
9+
# Get current working directory package name
10+
function package_name () {
11+
cat package.json | jq '.name' | pbcopy
12+
}
13+
14+
# Clear all node_modules and reinstall
815
function cnodem() {
916
npm ci --only=prod
1017
npm ci

0 commit comments

Comments
 (0)