mirror of
https://github.com/jakejarvis/dotfiles.git
synced 2025-09-15 23:15:30 -04:00
give up on NVM. again... (it's SO FREAKING SLOW.)
This commit is contained in:
@@ -18,7 +18,7 @@ Host *
|
||||
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
|
||||
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
|
||||
SendEnv LANG
|
||||
ServerAliveCountMax 3
|
||||
@@ -64,3 +64,8 @@ Host hashbang
|
||||
|
||||
Host *.ssh.wpengine.net
|
||||
IdentityFile ~/.ssh/wpe_devkit
|
||||
|
||||
Host 192.168.67.141
|
||||
HostName 192.168.67.141
|
||||
User root
|
||||
|
||||
|
28
zsh/.zshrc
28
zsh/.zshrc
@@ -1,3 +1,6 @@
|
||||
# uncomment to profile slow startup time
|
||||
# zmodload zsh/zprof
|
||||
|
||||
# Path to cloned dotfiles repo
|
||||
export DOTFILES=$HOME/.dotfiles
|
||||
|
||||
@@ -7,7 +10,7 @@ export ZSH=$HOME/.oh-my-zsh
|
||||
# Default to nano 'cause I'm a wimp
|
||||
export EDITOR="nano"
|
||||
export VISUAL="code"
|
||||
export BROWSER="firefox"
|
||||
export BROWSER="/Applications/Firefox.app/Contents/MacOS/firefox-bin"
|
||||
|
||||
# Adjust history for speed
|
||||
HISTFILE=~/.zsh_history
|
||||
@@ -17,6 +20,10 @@ SAVEHIST=10000
|
||||
# Oh My ZSH settings
|
||||
ZSH_CUSTOM=$DOTFILES/zsh
|
||||
ZSH_THEME="agnoster"
|
||||
DEFAULT_USER=jake
|
||||
DISABLE_UPDATE_PROMPT=true
|
||||
|
||||
# Oh My ZSH plugins
|
||||
plugins=(
|
||||
colorize
|
||||
osx
|
||||
@@ -24,13 +31,16 @@ plugins=(
|
||||
zsh-autosuggestions
|
||||
)
|
||||
|
||||
# Perform compinit only once a day
|
||||
# https://gist.github.com/ctechols/ca1035271ad134841284
|
||||
#autoload -Uz compinit
|
||||
#if [ $(date +'%j') != $(stat -f '%Sm' -t '%j' ~/.zcompdump) ]; then
|
||||
# compinit
|
||||
#else
|
||||
# compinit -C
|
||||
#fi
|
||||
autoload -Uz compinit
|
||||
if [[ -n ${ZDOTDIR}/.zcompdump(\#qN.mh+24) ]]; then
|
||||
compinit
|
||||
compdump
|
||||
else
|
||||
compinit -C
|
||||
fi;
|
||||
|
||||
|
||||
# Load everything!
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
@@ -48,3 +58,7 @@ export LSCOLORS=ExFxBxDxCxegedabagacad
|
||||
export HOMEBREW_NO_ANALYTICS=1
|
||||
export HOMEBREW_NO_INSECURE_REDIRECT=1
|
||||
export HOMEBREW_CASK_OPTS=--require-sha
|
||||
|
||||
# uncomment to profile slow startup time
|
||||
# zprof
|
||||
# zmodload -u zsh/zprof
|
||||
|
@@ -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"
|
||||
|
||||
# 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 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 vs="code ./"
|
||||
|
||||
alias firefox="/Applications/Firefox.app/Contents/MacOS/firefox-bin"
|
||||
alias ff="firefox"
|
||||
|
||||
#
|
||||
# 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 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 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 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"
|
||||
|
@@ -23,8 +23,8 @@ export PATH="/usr/local/opt/curl/bin:$PATH"
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
|
||||
# nvm
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
# export NVM_DIR="$HOME/.nvm"
|
||||
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
|
||||
# yarn
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
|
Reference in New Issue
Block a user