diff --git a/src/commands/install/config/apps-groups/git.ts b/src/commands/install/config/apps-groups/git.ts index 1072888..c906851 100755 --- a/src/commands/install/config/apps-groups/git.ts +++ b/src/commands/install/config/apps-groups/git.ts @@ -37,14 +37,26 @@ export const GIT_APPS: Readonly = [ deps: ['Git'], }, { - name: 'Increase credential cache timeout', - description: 'Increase the cache time for using your credentials from Keychain - 1 month', + name: 'MacOS Keychain store credentials for HTTPS remotes', + description: 'Use macOS Keychain to store credentials', group: 'git', - openUrl: () => `open https://git-scm.com/docs/git-credential-cache`, + openUrl: () => `open https://git-scm.com/docs/gitcredentials`, commands: () => [ // avoid lock for other `git config` options 'sleep 2', - `git config --global credential.helper 'cache --timeout 2592000'`, + `git config --global credential.helper osxkeychain`, + ], + deps: ['Git'], + }, + { + name: 'Disable SSL', + description: 'Disable SSL for Git operations', + group: 'git', + openUrl: () => `open https://git-scm.com/docs/git-config#Documentation/git-config.txt-httpsslVerify`, + commands: () => [ + // avoid lock for other `git config` options + 'sleep 3', + `git config http.sslVerify "false"`, ], deps: ['Git'], }, @@ -56,7 +68,7 @@ export const GIT_APPS: Readonly = [ openUrl: () => `open https://git-scm.com/docs/git-push#Documentation/git-push.txt-pushautoSetupRemote`, commands: () => [ // avoid lock for other `git config` options - 'sleep 3', + 'sleep 4', `git config --global --bool push.autoSetupRemote true`, ], deps: ['Git'], diff --git a/zsh/extends/.zshrc.extends.npm.sh b/zsh/extends/.zshrc.extends.npm.sh index a636f2a..4173bcc 100755 --- a/zsh/extends/.zshrc.extends.npm.sh +++ b/zsh/extends/.zshrc.extends.npm.sh @@ -5,6 +5,13 @@ alias nsd="npm run start:dev" alias nb="npm run build" alias nt="npm run test" alias nte="npm run test:e2e" + +# Get current working directory package name +function package_name () { + cat package.json | jq '.name' | pbcopy +} + +# Clear all node_modules and reinstall function cnodem() { npm ci --only=prod npm ci