Skip to content

Commit a369383

Browse files
committed
Merge branch 'master' of github.com:DelvarWorld/configs
2 parents 5a3b3ae + 6739cd7 commit a369383

5 files changed

Lines changed: 43 additions & 7 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: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,28 @@
11
#require 'awesome_print' # Removing because bad colors and can't configure
22
#AwesomePrint.pry!
33

4-
require 'colorize'
4+
puts "#{'Starting a Pry console...'.cyan}"
5+
6+
begin
7+
require 'colorize'
8+
puts "#{'require'.light_red} #{"'colorize'".cyan}"
9+
rescue LoadError
10+
puts "Warning: colorize gem not found"
11+
end
12+
13+
begin
14+
require 'factory_girl_console'
15+
puts "#{'require'.light_red} #{"'factory_girl_console'".cyan}"
16+
rescue LoadError
17+
puts "Warning: factory_girl_console gem not found"
18+
end
19+
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
526

627
def colorized_stack_trace( stack, base_dir )
728
separator = File::SEPARATOR
@@ -49,7 +70,7 @@ _max_display_string_length = 50
4970
def pbcopy(input)
5071
str = input.to_s
5172
IO.popen('pbcopy', 'w') { |f| f << str }
52-
truncaed = str.length > _max_display_string_length ? str[0.._max_display_string_length] + '...' : str
73+
truncated = str.length > _max_display_string_length ? str[0.._max_display_string_length] + '...' : str
5374
puts "Copied \"#{truncated}\" to system clipboard!"
5475
end
5576

.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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
// First undo TERRIBLE defaults by vscode_block_travel
1313
// https://github.com/sashaweiss/vscode_block_travel/blob/ba6cedc998a82d054ad499c8a96dffac4ca0aef7/package.json#L45
1414
{ "key": "shift+alt+down", "command": "editor.action.copyLinesDownAction",
15+
{ "key": "shift+alt+up", "command": "editor.action.copyLinesUpAction",
1516
"when": "editorTextFocus && !editorReadonly" },
16-
{ "key": "shift+alt+up", "command": "editor.action.copyLinesUpAction",
17+
{ "key": "cmd+alt+up", "command": "block-travel.selectUp",
1718
"when": "editorTextFocus" },
1819
{ "key": "alt+down", "command": "editor.action.moveLinesDownAction",
1920
"when": "editorTextFocus && !editorReadonly" },
@@ -26,5 +27,9 @@
2627
{ "key": "alt+]", "command": "block-travel.jumpDown", "when": "editorTextFocus" },
2728

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

code/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@
6464
"indentRainbow.error_color": "",
6565

6666
"editor.renderWhitespace": "none",
67-
"workbench.panel.location": "bottom",
67+
"workbench.panel.location": "bottom"
6868
}

0 commit comments

Comments
 (0)