Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/version-seven-point-one #26

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ workstation/itermocil
.Trashes
ehthumbs.db
Thumbs.db
scratch.rb
11 changes: 6 additions & 5 deletions workstation/dotfiles/.gemrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
:update_sources: true
:backtrace: false
:bulk_threshold: 1000
:sources:
- https://rubygems.org/
:benchmark: false
:bulk_threshold: 1000
:backtrace: false
:update_sources: true
:verbose: true
gem: --no-ri --no-rdoc
:concurrent_downloads: 8
benchmark: false
gem: "--no-ri --no-rdoc"
23 changes: 22 additions & 1 deletion workstation/dotfiles/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ else
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
fi

[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
Expand All @@ -74,4 +75,24 @@ export DIRENV_LOG_FORMAT=
# For osx machines fix the alt + arrow functionality
bindkey -e; bindkey '\e\e[C' forward-word; bindkey '\e\e[D' backward-word


# Loads the correct version of node via nvm
autoload -U add-zsh-hook
load-nvmrc() {
local node_version="$(nvm version)"
local nvmrc_path="$(nvm_find_nvmrc)"

if [ -n "$nvmrc_path" ]; then
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")

if [ "$nvmrc_node_version" = "N/A" ]; then
nvm install
elif [ "$nvmrc_node_version" != "$node_version" ]; then
nvm use
fi
elif [ "$node_version" != "$(nvm version default)" ]; then
echo "Reverting to nvm default version"
nvm use default
fi
}
add-zsh-hook chpwd load-nvmrc
load-nvmrc
1 change: 1 addition & 0 deletions workstation/shell/shortcut-help/git
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ githelp () {
echo " gcm = commit locally, but do not push to origin, commit msg in ide"
echo " gmb = pull, merge branch, push, status"
echo " gmt = pull, merge branch with full rewrite, push, status"
echo " gpab = delete all local branches"
echo " gdb = delete local and remote branch"
echo " gp = pull down all the code and all the tags"
echo " gpo = pushing all the things to origin"
Expand Down
2 changes: 1 addition & 1 deletion workstation/shell/shortcuts/git
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ function gd(){ git diff }
function gtl(){ git tag --sort=v:refname }
function grso(){ git remote show origin }
function gcf(){ git config --list }
function gpab(){ git branch | grep -v "master" | xargs git branch -D }

function gsmi(){
git status;
git pull;
git submodule update --init --recursive;
}

function gstats(){
git shortlog -s -n
}
Expand Down
2 changes: 1 addition & 1 deletion workstation/shell/shortcuts/ror
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# rubocop:disable all
MYRUBYVERSION="3.0.0"
export RUBY_DEP_GEM_SILENCE_WARNINGS=1
export RUBYOPT='-W0'
export RUBYOPT='-W:no-deprecated -W:no-experimental'
export BUNDLER_EDITOR="vscode"
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

Expand Down
3 changes: 2 additions & 1 deletion workstation/vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"[markdown]": {
"files.trimTrailingWhitespace": false
},
"editor.fontSize": 14,
"liveshare.accountProvider": "",
"liveshare.account": "",
"remote.extensionKind": {
Expand All @@ -84,4 +83,6 @@
"ruby.rubocop.useBundler": true,
"editor.formatOnSave": false,
"window.zoomLevel": -1,
"editor.accessibilityPageSize": 20,
"editor.fontSize": 14,
}