1
mirror of https://github.com/jakejarvis/dotfiles.git synced 2026-01-12 16:32:54 -05:00

give up on NVM. again... (it's SO FREAKING SLOW.)

This commit is contained in:
2020-06-13 17:36:00 -04:00
parent 6fea13f0bf
commit f557f09441
5 changed files with 50 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ Host *
HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ssh-rsa HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ssh-rsa
KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256 KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
PasswordAuthentication no # PasswordAuthentication no
PubkeyAuthentication yes PubkeyAuthentication yes
SendEnv LANG SendEnv LANG
ServerAliveCountMax 3 ServerAliveCountMax 3
@@ -64,3 +64,8 @@ Host hashbang
Host *.ssh.wpengine.net Host *.ssh.wpengine.net
IdentityFile ~/.ssh/wpe_devkit IdentityFile ~/.ssh/wpe_devkit
Host 192.168.67.141
HostName 192.168.67.141
User root

View File

@@ -1,3 +1,6 @@
# uncomment to profile slow startup time
# zmodload zsh/zprof
# Path to cloned dotfiles repo # Path to cloned dotfiles repo
export DOTFILES=$HOME/.dotfiles export DOTFILES=$HOME/.dotfiles
@@ -7,7 +10,7 @@ export ZSH=$HOME/.oh-my-zsh
# Default to nano 'cause I'm a wimp # Default to nano 'cause I'm a wimp
export EDITOR="nano" export EDITOR="nano"
export VISUAL="code" export VISUAL="code"
export BROWSER="firefox" export BROWSER="/Applications/Firefox.app/Contents/MacOS/firefox-bin"
# Adjust history for speed # Adjust history for speed
HISTFILE=~/.zsh_history HISTFILE=~/.zsh_history
@@ -17,6 +20,10 @@ SAVEHIST=10000
# Oh My ZSH settings # Oh My ZSH settings
ZSH_CUSTOM=$DOTFILES/zsh ZSH_CUSTOM=$DOTFILES/zsh
ZSH_THEME="agnoster" ZSH_THEME="agnoster"
DEFAULT_USER=jake
DISABLE_UPDATE_PROMPT=true
# Oh My ZSH plugins
plugins=( plugins=(
colorize colorize
osx osx
@@ -24,13 +31,16 @@ plugins=(
zsh-autosuggestions zsh-autosuggestions
) )
# Perform compinit only once a day
# https://gist.github.com/ctechols/ca1035271ad134841284 # https://gist.github.com/ctechols/ca1035271ad134841284
#autoload -Uz compinit autoload -Uz compinit
#if [ $(date +'%j') != $(stat -f '%Sm' -t '%j' ~/.zcompdump) ]; then if [[ -n ${ZDOTDIR}/.zcompdump(\#qN.mh+24) ]]; then
# compinit compinit
#else compdump
# compinit -C else
#fi compinit -C
fi;
# Load everything! # Load everything!
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
@@ -48,3 +58,7 @@ export LSCOLORS=ExFxBxDxCxegedabagacad
export HOMEBREW_NO_ANALYTICS=1 export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_NO_INSECURE_REDIRECT=1 export HOMEBREW_NO_INSECURE_REDIRECT=1
export HOMEBREW_CASK_OPTS=--require-sha export HOMEBREW_CASK_OPTS=--require-sha
# uncomment to profile slow startup time
# zprof
# zmodload -u zsh/zprof

View File

@@ -43,7 +43,7 @@ alias speed="wget -O /dev/null http://cachefly.cachefly.net/100mb.test"
alias digg="dig @8.8.8.8 +nocmd any +multiline +noall +answer" alias digg="dig @8.8.8.8 +nocmd any +multiline +noall +answer"
# Update: brew, npm, gem, app store, macos # Update: brew, npm, gem, app store, macos
alias update="brew update; brew upgrade; brew cask upgrade; brew cleanup; npm install npm -g; npm update -g; gem update --system; gem update; gem cleanup; sudo gem update --system; sudo gem update; sudo gem cleanup; mas upgrade; sudo softwareupdate -ia --include-config-data;" alias update="brew update; brew upgrade; brew cask upgrade; brew cleanup; npm install npm -g; npm update -g; gem update --system; gem update; gem cleanup; sudo gem update --system; sudo gem update; sudo gem cleanup; mas upgrade;" # sudo softwareupdate -ia --include-config-data;
alias rehide="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder" alias rehide="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
alias unhide="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder" alias unhide="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
@@ -66,6 +66,9 @@ alias opdir="open -a Finder ./"
# alias code="code-insiders" # alias code="code-insiders"
alias vs="code ./" alias vs="code ./"
alias firefox="/Applications/Firefox.app/Contents/MacOS/firefox-bin"
alias ff="firefox"
# #
# Git # Git
# #
@@ -126,6 +129,22 @@ alias docker-clean-volumes='docker volume ls --filter dangling=true | xargs dock
alias npm-reset="rm -rf node_modules && npm cache clean && npm install" alias npm-reset="rm -rf node_modules && npm cache clean && npm install"
alias yarn-reset="rm -rf node_modules && yarn cache clean && yarn install" alias yarn-reset="rm -rf node_modules && yarn cache clean && yarn install"
#
# Hugo
#
make_hugo() {
(
cd ~/golang/src/github.com/gohugoio/hugo \
&& git pull origin master \
&& git reset --hard HEAD \
&& git checkout master \
&& mage -v hugo \
&& HUGO_BUILD_TAGS=extended mage -v install
)
}
# run `hugo config` to make sure we're in a Hugo directory:
alias hugo-clean="hugo config 1>/dev/null && rm -rf public/ resources/ build/"
alias sshalt="ssh -p 2222" alias sshalt="ssh -p 2222"
alias moshalt="mosh --ssh=\"ssh -p 2222\"" alias moshalt="mosh --ssh=\"ssh -p 2222\""
@@ -139,6 +158,3 @@ alias ytdl="youtube-dl -f bestvideo+bestaudio"
alias ytmp3="youtube-dl -f bestaudio -x --audio-format mp3 --audio-quality 320K" alias ytmp3="youtube-dl -f bestaudio -x --audio-format mp3 --audio-quality 320K"
alias weather="curl -4 https://wttr.in/Boston" alias weather="curl -4 https://wttr.in/Boston"
alias make_hugo="cd ~/golang/src/github.com/gohugoio/hugo && git pull && mage hugo && HUGO_BUILD_TAGS=extended mage install"
alias hugod="docker run -v $(pwd):/src -p 1313:1313 jarv.is:develop"

View File

@@ -23,8 +23,8 @@ export PATH="/usr/local/opt/curl/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH" export PATH="$HOME/.cargo/bin:$PATH"
# nvm # nvm
export NVM_DIR="$HOME/.nvm" # export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm # [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# yarn # yarn
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"