1
mirror of https://github.com/jakejarvis/dotfiles.git synced 2025-04-25 15:35:21 -04:00

install volta via brew

This commit is contained in:
Jake Jarvis 2022-06-04 20:33:09 -04:00
parent 0dc947fc72
commit 7093477c72
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
5 changed files with 142 additions and 72 deletions

View File

@ -57,6 +57,7 @@ brew "make"
brew "openssh"
brew "screen"
brew "gmp"
brew "curl", link: true
# Other useful binaries
brew "ack"
@ -155,6 +156,7 @@ brew "sub2srt"
brew "svn"
brew "tor"
brew "torsocks"
brew "volta"
brew "whois", link: true
brew "wireguard-tools"
brew "wireguard-go"

View File

@ -5,7 +5,8 @@ set -euo pipefail
# fetch and install Volta (better nvm)
if ! command -v volta &> /dev/null
then
curl https://get.volta.sh | bash -s -- --skip-setup
# curl https://get.volta.sh | bash -s -- --skip-setup
brew install volta
fi
volta install node@latest # remove when LTS officially supports arm64
@ -34,7 +35,6 @@ packages=(
express
express-generator
firebase-tools
gatsby-cli
gzip-size-cli
json-server
netlify-cli

View File

@ -1,21 +1,19 @@
// Place your settings in this file to overwrite the default settings
{
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false,
"editor.fontFamily": "'Source Code Pro', Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 13,
"telemetry.telemetryLevel": "off",
"editor.fontFamily": "'SF Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 12.5,
"editor.lineHeight": 23,
"editor.tabSize": 2,
"editor.rulers": [80],
"editor.minimap.enabled": false,
"editor.renderWhitespace": "none",
"editor.rulers": [
120
],
"editor.suggestSelection": "first",
"editor.acceptSuggestionOnEnter": "smart",
"extensions.autoUpdate": true,
"extensions.ignoreRecommendations": true,
"workbench.colorCustomizations": {},
"workbench.colorTheme": "GitHub Dark",
"workbench.iconTheme": "material-icon-theme",
"workbench.tree.expandMode": "singleClick",
"workbench.enableExperiments": false,
"workbench.quickOpen.preserveInput": true,
@ -27,10 +25,8 @@
"workbench.editor.highlightModifiedTabs": true,
"workbench.editor.tabSizing": "shrink",
"terminal.external.osxExec": "iTerm.app",
"terminal.integrated.shell.osx": "/opt/homebrew/bin/zsh",
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.cursorBlinking": true,
"terminal.explorerKind": "external",
"remote.SSH.showLoginTerminal": true,
"window.openFilesInNewWindow": "default",
"explorer.confirmDragAndDrop": false,
@ -64,11 +60,9 @@
"prettier.configPath": ".prettierrc",
"markdown.preview.lineHeight": 1.75,
"aws.telemetry": false,
"aws.samcli.location": "/usr/local/bin/sam",
"aws.profile": "profile:default",
"aws.cdk.explorer.enabled": false,
"githubPullRequests.defaultMergeMethod": "rebase",
"githubPullRequests.telemetry.enabled": false,
"githubIssues.useBranchForIssues": "prompt",
"githubIssues.queries": [
{
@ -85,9 +79,9 @@
"material-icon-theme.activeIconPack": "none",
"material-icon-theme.showReloadMessage": false,
"material-icon-theme.showWelcomeMessage": false,
"material-icon-theme.folders.theme": "classic",
"material-icon-theme.folders.theme": "specific",
"settingsSync.ignoredSettings": [
],
"settingsSync.ignoredExtensions": [
"amazonwebservices.aws-toolkit-vscode",
@ -95,5 +89,90 @@
"msjsdiag.debugger-for-chrome",
"firefox-devtools.vscode-firefox-debug",
"shan.code-settings-sync"
]
}
],
"docker.showStartPage": false,
"editor.minimap.enabled": false,
"editor.inlineSuggest.enabled": true,
"github.copilot.advanced": {
},
"github.copilot.enable": {
"*": true,
"yaml": false,
"plaintext": false,
"markdown": false,
"javascript": true
},
"diffEditor.ignoreTrimWhitespace": false,
"javascript.inlayHints.parameterNames.enabled": "all",
"javascript.inlayHints.parameterTypes.enabled": true,
"javascript.inlayHints.variableTypes.enabled": true,
"javascript.inlayHints.propertyDeclarationTypes.enabled": true,
"typescript.inlayHints.enumMemberValues.enabled": true,
"typescript.inlayHints.functionLikeReturnTypes.enabled": true,
"typescript.inlayHints.parameterTypes.enabled": true,
"typescript.inlayHints.propertyDeclarationTypes.enabled": true,
"typescript.inlayHints.variableTypes.enabled": true,
"typescript.inlayHints.parameterNames.enabled": "all",
"javascript.inlayHints.functionLikeReturnTypes.enabled": true,
"javascript.inlayHints.enumMemberValues.enabled": true,
"terminal.integrated.fontFamily": "'SF Mono Powerline', 'Meslo LG M for Powerline', Menlo, Monaco, 'Courier New', monospace",
"terminal.integrated.defaultProfile.osx": "zsh",
"terminal.integrated.lineHeight": 1.25,
"editor.renderWhitespace": "none",
"files.associations": {
"*.html": "html",
"*.htm": "html",
"*.mdx": "markdown"
},
"workbench.iconTheme": "material-icon-theme",
"explorer.autoReveal": "focusNoScroll",
"eslint.packageManager": "yarn",
"git.autoStash": true,
"git.defaultCloneDirectory": "~/source/",
"git.rebaseWhenSync": true,
"githubIssues.workingIssueFormatScm": "${issueTitle} (fixes #${issueNumber})",
"gulp.autoDetect": "on",
"html.format.templating": true,
"prettier.trailingComma": "all",
"dotfiles.targetPath": "~/.dotfiles",
"stylelint.packageManager": "yarn",
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"javascript.format.semicolons": "insert",
"javascript.preferences.quoteStyle": "double",
"js/ts.implicitProjectConfig.experimentalDecorators": true,
"js/ts.implicitProjectConfig.strictNullChecks": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
"typescript.format.insertSpaceBeforeFunctionParenthesis": true,
"typescript.format.semicolons": "insert",
"typescript.preferences.quoteStyle": "double",
"typescript.surveys.enabled": false,
"stylelint.validate": [
"css",
"less",
"sass",
"scss",
"styled-css"
],
"files.trimTrailingWhitespace": true,
"security.workspace.trust.banner": "always",
"scss.lint.duplicateProperties": "error",
"scss.lint.unknownVendorSpecificProperties": "warning",
"git.allowNoVerifyCommit": true,
"git.enableSmartCommit": true,
"remoteHub.richNavigation.enabled": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always",
"terminal.integrated.env.osx": {
"FIG_NEW_SESSION": "1"
},
"editor.accessibilitySupport": "off",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.implementationsCodeLens.enabled": true,
"typescript.preferences.importModuleSpecifierEnding": "minimal",
"editor.inlayHints.enabled": false,
"typescript.tsserver.log": "off",
"terminal.integrated.defaultProfile.linux": "zsh",
}

View File

@ -1,68 +1,57 @@
if [ "$(uname)" = "Darwin" ]; then
# Default paths
export PATH="$HOME/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
if test ! "$(uname)" = "Darwin"; then
exit 0
fi
# homebrew
export HOMEBREW_PREFIX="/opt/homebrew";
export HOMEBREW_CELLAR="/opt/homebrew/Cellar";
export HOMEBREW_REPOSITORY="/opt/homebrew";
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}";
export MANPATH="/opt/homebrew/share/man${MANPATH+:$MANPATH}:";
export INFOPATH="/opt/homebrew/share/info:${INFOPATH:-}";
# Default paths
export PATH="$HOME/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
# Go
export GOPATH="$HOME/golang"
#export GOROOT="/usr/local/opt/go/libexec"
export PATH="$GOPATH/bin:$PATH"
#export PATH="$GOROOT/bin:$PATH"
# homebrew
export HOMEBREW_PREFIX="/opt/homebrew"
export HOMEBREW_CELLAR="/opt/homebrew/Cellar"
export HOMEBREW_REPOSITORY="/opt/homebrew"
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}"
export MANPATH="/opt/homebrew/share/man${MANPATH+:$MANPATH}:"
export INFOPATH="/opt/homebrew/share/info:${INFOPATH:-}"
# Ruby
export PATH="$HOME/.gem/ruby/3.0.0/bin:$PATH"
export RUBY_HOME="$HOMEBREW_PREFIX/opt/ruby/bin"
export GEM_PATH="$HOMEBREW_PREFIX/lib/ruby/gems/3.0.0/bin"
export PATH="$RUBY_HOME:$PATH"
export PATH="$GEM_PATH:$PATH"
# Go
export GOPATH="$HOME/golang"
#export GOROOT="/usr/local/opt/go/libexec"
export PATH="$GOPATH/bin:$PATH"
#export PATH="$GOROOT/bin:$PATH"
# rbenv
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml)"
if command -v rbenv 1>/dev/null 2>&1; then
eval "$(rbenv init -)"
fi
# Ruby
export PATH="$HOME/.gem/ruby/3.0.0/bin:$PATH"
export RUBY_HOME="$HOMEBREW_PREFIX/opt/ruby/bin"
export GEM_PATH="$HOMEBREW_PREFIX/lib/ruby/gems/3.0.0/bin"
export PATH="$RUBY_HOME:$PATH"
export PATH="$GEM_PATH:$PATH"
# Python
export PATH="$HOME/Library/Python/3.9/bin:$PATH"
# rbenv
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml)"
if command -v rbenv 1>/dev/null 2>&1; then
eval "$(rbenv init -)"
fi
# openjdk
export PATH="$HOMEBREW_PREFIX/opt/openjdk/bin:$PATH"
# Python
export PATH="$HOME/Library/Python/3.9/bin:$PATH"
# Metasploit
export PATH="/opt/metasploit-framework/bin:$PATH"
# openjdk
export PATH="$HOMEBREW_PREFIX/opt/openjdk/bin:$PATH"
# curl
export PATH="$HOMEBREW_PREFIX/opt/curl/bin:$PATH"
# Metasploit
export PATH="/opt/metasploit-framework/bin:$PATH"
# Rust/Cargo
export PATH="$HOME/.cargo/bin:$PATH"
# Rust/Cargo
export PATH="$HOME/.cargo/bin:$PATH"
# misc.
export PATH="$HOMEBREW_PREFIX/opt/make/libexec/gnubin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/whois/bin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/jpeg-turbo/bin:$PATH"
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
fi
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
fi
# volta
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
# ----- Third-party additions below: -----
# Google Cloud SDK
[ -f $HOMEBREW_PREFIX/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc ] && source $HOMEBREW_PREFIX/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc

@ -1 +1 @@
Subproject commit c5ce0014677a0f69a10b676b6038ad127f40c6b1
Subproject commit caa749d030d22168445c4cb97befd406d2828db0