mirror of
https://github.com/jakejarvis/dotfiles.git
synced 2025-04-26 03:45:21 -04:00
install volta via brew
This commit is contained in:
parent
0dc947fc72
commit
7093477c72
2
Brewfile
2
Brewfile
@ -57,6 +57,7 @@ brew "make"
|
|||||||
brew "openssh"
|
brew "openssh"
|
||||||
brew "screen"
|
brew "screen"
|
||||||
brew "gmp"
|
brew "gmp"
|
||||||
|
brew "curl", link: true
|
||||||
|
|
||||||
# Other useful binaries
|
# Other useful binaries
|
||||||
brew "ack"
|
brew "ack"
|
||||||
@ -155,6 +156,7 @@ brew "sub2srt"
|
|||||||
brew "svn"
|
brew "svn"
|
||||||
brew "tor"
|
brew "tor"
|
||||||
brew "torsocks"
|
brew "torsocks"
|
||||||
|
brew "volta"
|
||||||
brew "whois", link: true
|
brew "whois", link: true
|
||||||
brew "wireguard-tools"
|
brew "wireguard-tools"
|
||||||
brew "wireguard-go"
|
brew "wireguard-go"
|
||||||
|
@ -5,7 +5,8 @@ set -euo pipefail
|
|||||||
# fetch and install Volta (better nvm)
|
# fetch and install Volta (better nvm)
|
||||||
if ! command -v volta &> /dev/null
|
if ! command -v volta &> /dev/null
|
||||||
then
|
then
|
||||||
curl https://get.volta.sh | bash -s -- --skip-setup
|
# curl https://get.volta.sh | bash -s -- --skip-setup
|
||||||
|
brew install volta
|
||||||
fi
|
fi
|
||||||
|
|
||||||
volta install node@latest # remove when LTS officially supports arm64
|
volta install node@latest # remove when LTS officially supports arm64
|
||||||
@ -34,7 +35,6 @@ packages=(
|
|||||||
express
|
express
|
||||||
express-generator
|
express-generator
|
||||||
firebase-tools
|
firebase-tools
|
||||||
gatsby-cli
|
|
||||||
gzip-size-cli
|
gzip-size-cli
|
||||||
json-server
|
json-server
|
||||||
netlify-cli
|
netlify-cli
|
||||||
|
@ -1,21 +1,19 @@
|
|||||||
// Place your settings in this file to overwrite the default settings
|
// Place your settings in this file to overwrite the default settings
|
||||||
{
|
{
|
||||||
"telemetry.enableTelemetry": false,
|
"telemetry.telemetryLevel": "off",
|
||||||
"telemetry.enableCrashReporter": false,
|
"editor.fontFamily": "'SF Mono', Menlo, Monaco, 'Courier New', monospace",
|
||||||
"editor.fontFamily": "'Source Code Pro', Menlo, Monaco, 'Courier New', monospace",
|
"editor.fontSize": 12.5,
|
||||||
"editor.fontSize": 13,
|
|
||||||
"editor.lineHeight": 23,
|
"editor.lineHeight": 23,
|
||||||
"editor.tabSize": 2,
|
"editor.tabSize": 2,
|
||||||
"editor.rulers": [80],
|
"editor.rulers": [
|
||||||
"editor.minimap.enabled": false,
|
120
|
||||||
"editor.renderWhitespace": "none",
|
],
|
||||||
"editor.suggestSelection": "first",
|
"editor.suggestSelection": "first",
|
||||||
"editor.acceptSuggestionOnEnter": "smart",
|
"editor.acceptSuggestionOnEnter": "smart",
|
||||||
"extensions.autoUpdate": true,
|
"extensions.autoUpdate": true,
|
||||||
"extensions.ignoreRecommendations": true,
|
"extensions.ignoreRecommendations": true,
|
||||||
"workbench.colorCustomizations": {},
|
"workbench.colorCustomizations": {},
|
||||||
"workbench.colorTheme": "GitHub Dark",
|
"workbench.colorTheme": "GitHub Dark",
|
||||||
"workbench.iconTheme": "material-icon-theme",
|
|
||||||
"workbench.tree.expandMode": "singleClick",
|
"workbench.tree.expandMode": "singleClick",
|
||||||
"workbench.enableExperiments": false,
|
"workbench.enableExperiments": false,
|
||||||
"workbench.quickOpen.preserveInput": true,
|
"workbench.quickOpen.preserveInput": true,
|
||||||
@ -27,10 +25,8 @@
|
|||||||
"workbench.editor.highlightModifiedTabs": true,
|
"workbench.editor.highlightModifiedTabs": true,
|
||||||
"workbench.editor.tabSizing": "shrink",
|
"workbench.editor.tabSizing": "shrink",
|
||||||
"terminal.external.osxExec": "iTerm.app",
|
"terminal.external.osxExec": "iTerm.app",
|
||||||
"terminal.integrated.shell.osx": "/opt/homebrew/bin/zsh",
|
|
||||||
"terminal.integrated.cursorStyle": "line",
|
"terminal.integrated.cursorStyle": "line",
|
||||||
"terminal.integrated.cursorBlinking": true,
|
"terminal.integrated.cursorBlinking": true,
|
||||||
"terminal.explorerKind": "external",
|
|
||||||
"remote.SSH.showLoginTerminal": true,
|
"remote.SSH.showLoginTerminal": true,
|
||||||
"window.openFilesInNewWindow": "default",
|
"window.openFilesInNewWindow": "default",
|
||||||
"explorer.confirmDragAndDrop": false,
|
"explorer.confirmDragAndDrop": false,
|
||||||
@ -64,11 +60,9 @@
|
|||||||
"prettier.configPath": ".prettierrc",
|
"prettier.configPath": ".prettierrc",
|
||||||
"markdown.preview.lineHeight": 1.75,
|
"markdown.preview.lineHeight": 1.75,
|
||||||
"aws.telemetry": false,
|
"aws.telemetry": false,
|
||||||
"aws.samcli.location": "/usr/local/bin/sam",
|
|
||||||
"aws.profile": "profile:default",
|
"aws.profile": "profile:default",
|
||||||
"aws.cdk.explorer.enabled": false,
|
"aws.cdk.explorer.enabled": false,
|
||||||
"githubPullRequests.defaultMergeMethod": "rebase",
|
"githubPullRequests.defaultMergeMethod": "rebase",
|
||||||
"githubPullRequests.telemetry.enabled": false,
|
|
||||||
"githubIssues.useBranchForIssues": "prompt",
|
"githubIssues.useBranchForIssues": "prompt",
|
||||||
"githubIssues.queries": [
|
"githubIssues.queries": [
|
||||||
{
|
{
|
||||||
@ -85,9 +79,9 @@
|
|||||||
"material-icon-theme.activeIconPack": "none",
|
"material-icon-theme.activeIconPack": "none",
|
||||||
"material-icon-theme.showReloadMessage": false,
|
"material-icon-theme.showReloadMessage": false,
|
||||||
"material-icon-theme.showWelcomeMessage": false,
|
"material-icon-theme.showWelcomeMessage": false,
|
||||||
"material-icon-theme.folders.theme": "classic",
|
"material-icon-theme.folders.theme": "specific",
|
||||||
"settingsSync.ignoredSettings": [
|
"settingsSync.ignoredSettings": [
|
||||||
|
|
||||||
],
|
],
|
||||||
"settingsSync.ignoredExtensions": [
|
"settingsSync.ignoredExtensions": [
|
||||||
"amazonwebservices.aws-toolkit-vscode",
|
"amazonwebservices.aws-toolkit-vscode",
|
||||||
@ -95,5 +89,90 @@
|
|||||||
"msjsdiag.debugger-for-chrome",
|
"msjsdiag.debugger-for-chrome",
|
||||||
"firefox-devtools.vscode-firefox-debug",
|
"firefox-devtools.vscode-firefox-debug",
|
||||||
"shan.code-settings-sync"
|
"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",
|
||||||
|
}
|
||||||
|
95
zsh/path.zsh
95
zsh/path.zsh
@ -1,68 +1,57 @@
|
|||||||
if [ "$(uname)" = "Darwin" ]; then
|
if test ! "$(uname)" = "Darwin"; then
|
||||||
# Default paths
|
exit 0
|
||||||
export PATH="$HOME/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
fi
|
||||||
|
|
||||||
# homebrew
|
# Default paths
|
||||||
export HOMEBREW_PREFIX="/opt/homebrew";
|
export PATH="$HOME/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
||||||
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:-}";
|
|
||||||
|
|
||||||
# Go
|
# homebrew
|
||||||
export GOPATH="$HOME/golang"
|
export HOMEBREW_PREFIX="/opt/homebrew"
|
||||||
#export GOROOT="/usr/local/opt/go/libexec"
|
export HOMEBREW_CELLAR="/opt/homebrew/Cellar"
|
||||||
export PATH="$GOPATH/bin:$PATH"
|
export HOMEBREW_REPOSITORY="/opt/homebrew"
|
||||||
#export PATH="$GOROOT/bin:$PATH"
|
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
|
# Go
|
||||||
export PATH="$HOME/.gem/ruby/3.0.0/bin:$PATH"
|
export GOPATH="$HOME/golang"
|
||||||
export RUBY_HOME="$HOMEBREW_PREFIX/opt/ruby/bin"
|
#export GOROOT="/usr/local/opt/go/libexec"
|
||||||
export GEM_PATH="$HOMEBREW_PREFIX/lib/ruby/gems/3.0.0/bin"
|
export PATH="$GOPATH/bin:$PATH"
|
||||||
export PATH="$RUBY_HOME:$PATH"
|
#export PATH="$GOROOT/bin:$PATH"
|
||||||
export PATH="$GEM_PATH:$PATH"
|
|
||||||
|
|
||||||
# rbenv
|
# Ruby
|
||||||
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml)"
|
export PATH="$HOME/.gem/ruby/3.0.0/bin:$PATH"
|
||||||
if command -v rbenv 1>/dev/null 2>&1; then
|
export RUBY_HOME="$HOMEBREW_PREFIX/opt/ruby/bin"
|
||||||
eval "$(rbenv init -)"
|
export GEM_PATH="$HOMEBREW_PREFIX/lib/ruby/gems/3.0.0/bin"
|
||||||
fi
|
export PATH="$RUBY_HOME:$PATH"
|
||||||
|
export PATH="$GEM_PATH:$PATH"
|
||||||
|
|
||||||
# Python
|
# rbenv
|
||||||
export PATH="$HOME/Library/Python/3.9/bin:$PATH"
|
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
|
# Python
|
||||||
export PATH="$HOMEBREW_PREFIX/opt/openjdk/bin:$PATH"
|
export PATH="$HOME/Library/Python/3.9/bin:$PATH"
|
||||||
|
|
||||||
# Metasploit
|
# openjdk
|
||||||
export PATH="/opt/metasploit-framework/bin:$PATH"
|
export PATH="$HOMEBREW_PREFIX/opt/openjdk/bin:$PATH"
|
||||||
|
|
||||||
# curl
|
# Metasploit
|
||||||
export PATH="$HOMEBREW_PREFIX/opt/curl/bin:$PATH"
|
export PATH="/opt/metasploit-framework/bin:$PATH"
|
||||||
|
|
||||||
# Rust/Cargo
|
# Rust/Cargo
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
|
|
||||||
# misc.
|
# pyenv
|
||||||
export PATH="$HOMEBREW_PREFIX/opt/make/libexec/gnubin:$PATH"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
export PATH="$HOMEBREW_PREFIX/opt/whois/bin:$PATH"
|
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
export PATH="$HOMEBREW_PREFIX/opt/jpeg-turbo/bin:$PATH"
|
if command -v pyenv 1>/dev/null 2>&1; then
|
||||||
|
eval "$(pyenv init --path)"
|
||||||
# pyenv
|
eval "$(pyenv init -)"
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# volta
|
# volta
|
||||||
export VOLTA_HOME="$HOME/.volta"
|
export VOLTA_HOME="$HOME/.volta"
|
||||||
export PATH="$VOLTA_HOME/bin:$PATH"
|
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
|
Loading…
x
Reference in New Issue
Block a user