Skip to content

Commit 6739cd7

Browse files
committed
code and stuff
1 parent f59d245 commit 6739cd7

5 files changed

Lines changed: 30 additions & 4 deletions

File tree

.bashrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,15 @@ function error_test() {
861861
fi
862862
}
863863

864+
# does not work when used as $(${gr_banana})
865+
function gr_banana() {
866+
if [[ "$AWS_ENVIRONMENT" != "" ]]; then
867+
echo -e "${COLOR_LIGHT_GREEN}env${COLOR_RESET}"
868+
else
869+
echo -e "${COLOR_LIGHT_RED}no${COLOR_RESET}"
870+
fi
871+
}
872+
864873
PS1="\n\[$COLOR_YELLOW\]\u\[\$(error_test)\]@\[$COLOR_GREEN\]\w\$(${dvcs_function})\[$COLOR_RESET\] \$ "
865874

866875
### Added by the Heroku Toolbelt

.pryrc

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

4+
puts "#{'Starting a Pry console...'.cyan}"
5+
46
begin
57
require 'colorize'
68
puts "#{'require'.light_red} #{"'colorize'".cyan}"
@@ -15,6 +17,13 @@ rescue LoadError
1517
puts "Warning: factory_girl_console gem not found"
1618
end
1719

20+
begin
21+
include Rails.application.routes.url_helpers
22+
puts "#{'include'.light_yellow} #{'Rails.application.routes.url_helpers'.cyan}"
23+
rescue LoadError
24+
puts "Warning: factory_girl_console gem not found"
25+
end
26+
1827
def colorized_stack_trace( stack, base_dir )
1928
separator = File::SEPARATOR
2029
longest = stack.max_by(&:length).length

.vimrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ set shiftround
118118
" this file
119119
setglobal relativenumber
120120

121-
" errors in modifiable off files so silent :( vim is a gargabe joke
121+
" Use non-windows linebreaks. This command errors in modifiable off files, so
122+
" suppress errors with silent :(
122123
silent! set ff=unix
123124

124125
" Ignore caase in search, unless you type any capital letters, then it

code/keybindings.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
// https://github.com/sashaweiss/vscode_block_travel/blob/ba6cedc998a82d054ad499c8a96dffac4ca0aef7/package.json#L45
1414
{ "key": "shift+alt+down", "command": "editor.action.copyLinesDownAction",
1515
"when": "editorTextFocus && !editorReadonly" },
16-
{ "key": "shift+alt+up", "command": "block-travel.selectUp",
16+
{ "key": "shift+alt+up", "command": "editor.action.copyLinesUpAction",
17+
"when": "editorTextFocus && !editorReadonly" },
18+
{ "key": "cmd+alt+up", "command": "block-travel.selectUp",
1719
"when": "editorTextFocus" },
1820
{ "key": "alt+down", "command": "editor.action.moveLinesDownAction",
1921
"when": "editorTextFocus && !editorReadonly" },
@@ -26,5 +28,9 @@
2628
{ "key": "alt+]", "command": "block-travel.jumpDown", "when": "editorTextFocus" },
2729

2830
{ "key": "alt+shift+[", "command": "block-travel.selectUp", "when": "editorTextFocus" },
29-
{ "key": "alt+shift+]", "command": "block-travel.selectDown", "when": "editorTextFocus" }
31+
{ "key": "alt+shift+]", "command": "block-travel.selectDown", "when": "editorTextFocus" },
32+
33+
// terrible defaults for "rails run specs"
34+
{ "key": "shift+cmd+t", "command": "workbench.action.reopenClosedEditor" },
35+
{ "key": "cmd+k cmd+f", "command": "extension.runFileSpecs" }
3036
]

code/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@
6363

6464
"indentRainbow.error_color": "",
6565

66-
"editor.renderWhitespace": "none"
66+
"editor.renderWhitespace": "none",
67+
"workbench.panel.location": "right"
6768
}

0 commit comments

Comments
 (0)