mirror of
https://github.com/jakejarvis/dotfiles.git
synced 2025-04-26 03:45:21 -04:00
parent
ad0839a1da
commit
49b8860694
6
Brewfile
6
Brewfile
@ -93,10 +93,6 @@ brew "git-crypt"
|
|||||||
brew "gh"
|
brew "gh"
|
||||||
brew "hub"
|
brew "hub"
|
||||||
|
|
||||||
# Node & NPM / NVM
|
|
||||||
brew "node"
|
|
||||||
brew "nvm"
|
|
||||||
|
|
||||||
# Mostly ordinary binaries
|
# Mostly ordinary binaries
|
||||||
brew "act"
|
brew "act"
|
||||||
brew "aws-shell"
|
brew "aws-shell"
|
||||||
@ -187,14 +183,12 @@ brew "torsocks"
|
|||||||
brew "travis"
|
brew "travis"
|
||||||
brew "twilio/brew/twilio"
|
brew "twilio/brew/twilio"
|
||||||
brew "typescript"
|
brew "typescript"
|
||||||
brew "watchman"
|
|
||||||
brew "whois", link: true
|
brew "whois", link: true
|
||||||
brew "wireguard-tools"
|
brew "wireguard-tools"
|
||||||
brew "wireguard-go"
|
brew "wireguard-go"
|
||||||
brew "wp-cli"
|
brew "wp-cli"
|
||||||
# brew "wpengine/wpe-cli/wpe-cli"
|
# brew "wpengine/wpe-cli/wpe-cli"
|
||||||
brew "xz"
|
brew "xz"
|
||||||
brew "yarn"
|
|
||||||
brew "youtube-dl"
|
brew "youtube-dl"
|
||||||
brew "yq"
|
brew "yq"
|
||||||
brew "yuicompressor"
|
brew "yuicompressor"
|
||||||
|
@ -2,25 +2,37 @@
|
|||||||
|
|
||||||
set -euo pipefail
|
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
|
||||||
|
fi
|
||||||
|
|
||||||
|
volta install node@lts
|
||||||
|
volta install node@latest # remove when LTS officially supports arm64
|
||||||
|
volta install npm@6 # having issues with npm@7 and volta
|
||||||
|
volta install yarn@1
|
||||||
|
|
||||||
|
volta list node
|
||||||
|
volta list npm
|
||||||
|
volta list yarn
|
||||||
|
|
||||||
# npm ls --global --parseable --depth=0 | awk '{gsub(/\/.*\//,"",$1); print}' | sort -u
|
# npm ls --global --parseable --depth=0 | awk '{gsub(/\/.*\//,"",$1); print}' | sort -u
|
||||||
packages=(
|
packages=(
|
||||||
@11ty/eleventy
|
@11ty/eleventy
|
||||||
@ampproject/toolbox-cli
|
|
||||||
@babel/cli
|
@babel/cli
|
||||||
@babel/core
|
@babel/core
|
||||||
@lhci/cli
|
@lhci/cli
|
||||||
autoprefixer
|
autoprefixer
|
||||||
|
browserify
|
||||||
eslint
|
eslint
|
||||||
express
|
express
|
||||||
express-generator
|
express-generator
|
||||||
firebase-tools
|
firebase-tools
|
||||||
gatsby-cli
|
gatsby-cli
|
||||||
gitmoji-cli
|
|
||||||
gulp
|
gulp
|
||||||
is-up-cli
|
|
||||||
json-server
|
json-server
|
||||||
netlify-cli
|
netlify-cli
|
||||||
newman
|
|
||||||
nodemon
|
nodemon
|
||||||
npm-check-updates
|
npm-check-updates
|
||||||
pm2
|
pm2
|
||||||
@ -32,13 +44,15 @@ packages=(
|
|||||||
serve
|
serve
|
||||||
standard
|
standard
|
||||||
stylelint
|
stylelint
|
||||||
superstatic
|
svgo
|
||||||
|
terser
|
||||||
vercel
|
vercel
|
||||||
webpack
|
webpack
|
||||||
webpack-cli
|
webpack-cli
|
||||||
yo
|
|
||||||
)
|
)
|
||||||
|
|
||||||
for p in "${packages[@]}"; do
|
for p in "${packages[@]}"; do
|
||||||
npm install --global "$p" || echo "$p not found"
|
npm install --global "$p" || echo "$p not found"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
volta list all
|
||||||
|
@ -47,6 +47,9 @@ compinit -C
|
|||||||
# Load everything!
|
# Load everything!
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
export ZPLUG_HOME=/opt/homebrew/opt/zplug
|
||||||
|
source $ZPLUG_HOME/init.zsh
|
||||||
|
|
||||||
# Fix slow paste problem w/ zsh-syntax-highlighting plugin
|
# Fix slow paste problem w/ zsh-syntax-highlighting plugin
|
||||||
# https://github.com/zsh-users/zsh-syntax-highlighting/issues/295
|
# https://github.com/zsh-users/zsh-syntax-highlighting/issues/295
|
||||||
zstyle ':bracketed-paste-magic' active-widgets '.self-*'
|
zstyle ':bracketed-paste-magic' active-widgets '.self-*'
|
||||||
|
@ -45,9 +45,8 @@ update() {
|
|||||||
brew cleanup
|
brew cleanup
|
||||||
|
|
||||||
echo -e "${YELLOW}Updating NPM/Yarn packages...${NC}"
|
echo -e "${YELLOW}Updating NPM/Yarn packages...${NC}"
|
||||||
npm install npm@latest --global
|
volta run npm update --global
|
||||||
npm update --global
|
volta run yarn global upgrade
|
||||||
yarn global upgrade
|
|
||||||
|
|
||||||
echo -e "${YELLOW}Updating Ruby gems...${NC}"
|
echo -e "${YELLOW}Updating Ruby gems...${NC}"
|
||||||
gem update --system
|
gem update --system
|
||||||
@ -65,8 +64,8 @@ update() {
|
|||||||
echo -e "${YELLOW}Updating Oh-My-ZSH...${NC}"
|
echo -e "${YELLOW}Updating Oh-My-ZSH...${NC}"
|
||||||
omz update
|
omz update
|
||||||
|
|
||||||
# echo -e "${YELLOW}Updating MAS apps...${NC}"
|
echo -e "${YELLOW}Updating MAS apps...${NC}"
|
||||||
# mas upgrade
|
mas upgrade
|
||||||
|
|
||||||
echo -e "${YELLOW}Check for macOS system updates...${NC}"
|
echo -e "${YELLOW}Check for macOS system updates...${NC}"
|
||||||
softwareupdate --list
|
softwareupdate --list
|
||||||
|
@ -16,6 +16,7 @@ export PATH="$GOPATH/bin:$PATH"
|
|||||||
#export PATH="$GOROOT/bin:$PATH"
|
#export PATH="$GOROOT/bin:$PATH"
|
||||||
|
|
||||||
# Ruby
|
# Ruby
|
||||||
|
export PATH="$HOME/.gem/ruby/3.0.0/bin:$PATH"
|
||||||
export RUBY_HOME="$HOMEBREW_PREFIX/opt/ruby/bin"
|
export RUBY_HOME="$HOMEBREW_PREFIX/opt/ruby/bin"
|
||||||
export GEM_PATH="$HOMEBREW_PREFIX/lib/ruby/gems/3.0.0/bin"
|
export GEM_PATH="$HOMEBREW_PREFIX/lib/ruby/gems/3.0.0/bin"
|
||||||
export PATH="$RUBY_HOME:$PATH"
|
export PATH="$RUBY_HOME:$PATH"
|
||||||
@ -50,8 +51,6 @@ export PATH="$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
|||||||
export PATH="$HOMEBREW_PREFIX/opt/make/libexec/gnubin:$PATH"
|
export PATH="$HOMEBREW_PREFIX/opt/make/libexec/gnubin:$PATH"
|
||||||
export PATH="$HOMEBREW_PREFIX/opt/whois/bin:$PATH"
|
export PATH="$HOMEBREW_PREFIX/opt/whois/bin:$PATH"
|
||||||
export PATH="$HOMEBREW_PREFIX/opt/jpeg-turbo/bin:$PATH"
|
export PATH="$HOMEBREW_PREFIX/opt/jpeg-turbo/bin:$PATH"
|
||||||
#export LDFLAGS="-L$HOMEBREW_PREFIX/opt/jpeg-turbo/lib"
|
|
||||||
#export CPPFLAGS="-I$HOMEBREW_PREFIX/opt/jpeg-turbo/include"
|
|
||||||
|
|
||||||
# pyenv
|
# pyenv
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
@ -61,6 +60,10 @@ if command -v pyenv 1>/dev/null 2>&1; then
|
|||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# volta
|
||||||
|
export VOLTA_HOME="$HOME/.volta"
|
||||||
|
export PATH="$VOLTA_HOME/bin:$PATH"
|
||||||
|
|
||||||
# ----- Third-party additions below: -----
|
# ----- Third-party additions below: -----
|
||||||
|
|
||||||
# Google Cloud SDK
|
# Google Cloud SDK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user