Skip to content

Commit

Permalink
added iterm preferences, updated npm global installs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshghent committed Apr 26, 2023
1 parent 436415e commit 631edb5
Show file tree
Hide file tree
Showing 6 changed files with 66,988 additions and 8 deletions.
1 change: 1 addition & 0 deletions .bash_profile
Expand Up @@ -76,3 +76,4 @@ setToken() {
echo "Your creds have been set in your env."
}
alias mfa=setToken
. "$HOME/.cargo/env"
1 change: 1 addition & 0 deletions .profile
@@ -1,2 +1,3 @@
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
. "$HOME/.cargo/env"
43 changes: 35 additions & 8 deletions code.sh
Expand Up @@ -11,12 +11,36 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
brew install node
brew install nvm
mkdir ~/.nvm
export NVM_DIR="$HOME/.nvm" && [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" && [ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm"
nvm install node
nvm use node
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install --lts
nvm use --lts
nvm alias default node

npm i -g typescript eslint npm-check-updates serverless jest mocha git-split-diffs
declare -a npms = (
"typescript"
"eslint"
"npm-check-updates"
"depcheck"
"serverless"
"mysql2"
"sequelize"
"vercel"
"concurrent"
"create-react-app"
"bundlesize"
"webpack"
"ncc"
"jest"
"mocha"
"git-split-diffs"
"doctoc"
)

for npm in "${npms[@]}"; do
npm install -g "$npm"
done

brew cleanup

Expand All @@ -30,12 +54,15 @@ gem install travis
echo "Please enter your email: "
read -r email

ssh-keygen -t rsa -b 4096 -C "$email"
ssh-keygen -t ed25519 -C "$email"
eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/id_rsa
echo ~/.ssh/id_rsa.pub
pbcopy < ~/.ssh/id_rsa.pub
ssh-add -K ~/.ssh/id_ed25519
echo ~/.ssh/id_ed25519.pub
pbcopy < ~/.ssh/id_ed25519.pub
echo "SSH Key Copied to Clipboard. Please add to GitHub / GitLab"

# Install Monokai Refined theme for Vim
curl -o ~/.vim/colors/monokai-refined.vim https://raw.githubusercontent.com/jaromero/vim-monokai-refined/master/colors/Monokai-Refined.vim

# Install Rust
curl https://sh.rustup.rs -sSf | sh

0 comments on commit 631edb5

Please sign in to comment.