Skip to content

Commit 216788d

Browse files
committed
moo
1 parent f78ae6e commit 216788d

4 files changed

Lines changed: 81 additions & 9 deletions

File tree

.bashrc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,9 @@ git_purge() {
567567
git_purge_remote_branches $branch
568568
}
569569

570+
# Replacement for st?
571+
alias gs="git status --untracked-files=no"
572+
570573
#######################################
571574
# distributed version control section #
572575
#######################################
@@ -1035,7 +1038,8 @@ function releaseCommits() {
10351038
}
10361039

10371040
function jgrep() {
1038-
#{ rake routes > ~/dev/rake-routes & } 2>/dev/null
1041+
# Run this to regenerate
1042+
# bundle exec rake routes > ~/dev/rake-routes
10391043
cat ~/dev/rake-routes | grep "$1"
10401044
}
10411045

@@ -1142,6 +1146,22 @@ if [ -d "$TRACKER_FLOW_PATH" ]; then
11421146
. "$TRACKER_FLOW_PATH/tracker_completion.bash"
11431147
fi
11441148

1149+
# Kill stanky Rails Console
1150+
function kc() {
1151+
ps aux | grep -E 'bin/rails c|rails_console' | grep -v 'grep' | awk '{print $2}' | xargs kill -9
1152+
}
1153+
1154+
# Check out file to branch and unstage it
1155+
function fb() {
1156+
if [[ -z "$1" || -z "$2" ]]; then
1157+
echo 'Usage: filebranch branchname filename'
1158+
fi
1159+
dqt='"'
1160+
echo "git checkout ${dbq}${1}${dbq} -- ${dbq}${2}${dbq} && git reset HEAD ${dbq}${2}${dbq}"
1161+
git checkout "$1" -- "$2" && git reset HEAD "$2"
1162+
git status --untracked-files=no
1163+
}
1164+
11451165
# Chruby
11461166
CHRUBY_PATH="/usr/local/share/chruby/"
11471167
if [ -d "$CHRUBY_PATH" ]; then

.pryrc

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
#require 'awesome_print' # Removing because bad colors and can't configure
22
#AwesomePrint.pry!
33

4+
5+
url = 'https://vonk.fire.ly'
6+
if defined? GrFhir
7+
client = GrFhir::Client.build(url)
8+
else
9+
client = Gr::Fhir::Client.build(url)
10+
end
11+
puts "Client ready at #{url}"
12+
413
begin
514
require 'colorize'
615
puts "#{'require'.light_red} #{"'colorize'".cyan}"
7-
rescue LoadError
16+
rescue StandardError
817
puts "Warning: colorize gem not found"
918
end
1019

1120
begin
1221
require 'factory_bot_rails'
1322
puts "#{'require'.light_red} #{"'factory_bot_rails'".cyan}"
14-
rescue LoadError
23+
rescue StandardError
1524
puts "Warning: factory_bot_rails gem not found"
1625
end
1726

1827
# Gives domestic_phone_number for creating factories that use phone numbers
1928
begin
2029
require './spec/support/faker_phones.rb'
2130
puts "#{'require'.light_red} #{"'./spec/support/faker_phones.rb'".cyan}"
22-
rescue LoadError
31+
rescue StandardError
2332
puts "Warning: ./spec/support/faker_phones.rb not found"
2433
end
2534

code/keybindings.json

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,52 @@
1212
// terrible defaults for "rails run specs"
1313
{ "key": "shift+cmd+t", "command": "workbench.action.reopenClosedEditor" },
1414
{ "key": "cmd+k cmd+f", "command": "extension.runFileSpecs" },
15+
16+
// Jump around in vim
17+
{
18+
"key": "cmd+]",
19+
"command": "workbench.action.editor.nextChange",
20+
"when": "editorTextFocus"
21+
},
1522
{
16-
"key": "alt+cmd+n",
17-
"command": "workbench.action.compareEditor.nextChange",
23+
"key": "cmd+[",
24+
"command": "workbench.action.editor.previousChange",
1825
"when": "editorTextFocus"
26+
},
27+
28+
// From https://stackoverflow.com/a/46087295/743464, note it applies to
29+
// splits with tabs which sucks
30+
{
31+
"key": "cmd+1",
32+
"command": "workbench.action.openEditorAtIndex1"
33+
},
34+
{
35+
"key": "cmd+2",
36+
"command": "workbench.action.openEditorAtIndex2"
37+
},
38+
{
39+
"key": "cmd+3",
40+
"command": "workbench.action.openEditorAtIndex3"
41+
},
42+
{
43+
"key": "cmd+4",
44+
"command": "workbench.action.openEditorAtIndex4"
45+
},
46+
{
47+
"key": "cmd+5",
48+
"command": "workbench.action.openEditorAtIndex5"
49+
},
50+
{
51+
"key": "cmd+6",
52+
"command": "workbench.action.openEditorAtIndex6"
53+
},
54+
{
55+
"key": "cmd+7",
56+
"command": "workbench.action.openEditorAtIndex7"
57+
},
58+
{
59+
"key": "cmd+8",
60+
"command": "workbench.action.openEditorAtIndex8"
1961
}
2062
]
2163

code/settings.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Place your settings in this file to overwrite the default settings
22
{
3-
"workbench.colorTheme": "Visual Studio Light",
3+
"workbench.colorTheme": "Abyss",
44
"eslint.enable": true,
55
"javascript.validate.enable": false,
66
"editor.rulers": [80],
@@ -46,5 +46,6 @@
4646
}
4747
},
4848
"workbench.sideBar.location": "left",
49-
"workbench.settings.editor": "json"
50-
}
49+
"workbench.settings.editor": "json",
50+
"files.autoSave": "onFocusChange"
51+
}

0 commit comments

Comments
 (0)