Skip to content

Commit 7cb3975

Browse files
committed
Merge branch 'master' of github.com:AndrewRayCode/configs
2 parents bae146f + b5edd47 commit 7cb3975

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

.bashrc

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,6 @@ function ddiff() {
9191
git diff `git merge-base upstream/dev HEAD`..HEAD
9292
}
9393

94-
# Log of everything on this braynch
95-
function dlog() {
96-
git log -p `git merge-base origin/master HEAD`..HEAD
97-
}
98-
9994
function recent-branches() {
10095
local branches=`git for-each-ref --sort=-committerdate refs/heads/ | head -n 10`
10196
local output=''
@@ -270,6 +265,13 @@ if [ -f ~/.git-completion.bash ]; then
270265
. ~/.git-completion.bash
271266
fi
272267

268+
# Docker logs for conatiner with name
269+
dlog() {
270+
local cid=`docker ps | grep $1 | awk '{print $1}'`
271+
echo "docker logs -f ${cid}"
272+
docker logs -f ${cid}
273+
}
274+
273275
alias here='open .'
274276

275277
# ln -s /Applications/MacVim.app/Contents/bin/mvim /usr/local/bin/mvim
@@ -1189,5 +1191,8 @@ pathadd /Users/aray/miniconda3/bin:$PATH
11891191
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
11901192

11911193
# For docker builds
1192-
export GITHUB_PRIVATE_KEY="$(cat /Users/aray/.ssh/docker_gr_rsa)"
1194+
DOCKER_KEY="${HOME}/.ssh/docker_gr_rsa"
1195+
if [ -a "$DOCKER_KEY" ]; then
1196+
export GITHUB_PRIVATE_KEY="$(cat $DOCKER_KEY)"
1197+
fi
11931198

.haskeline

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
editMode: Vi

.vimrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ function! TextEnableCodeSnip(filetype,start,end,textSnipHl) abort
489489
endfunction
490490

491491
call TextEnableCodeSnip('ruby', '@begin=ruby@', '@end=ruby@', 'SpecialComment')
492+
call TextEnableCodeSnip('glsl', '@begin=glsl@', '@end=glsl@', 'SpecialComment')
492493

493494

494495
"------------------------------------------------------------------------------
@@ -1046,7 +1047,7 @@ augroup END
10461047
" =============================================================================
10471048

10481049

1049-
let g:markdown_fenced_languages = ['html', 'python', 'bash=sh', 'json', 'javascript', 'ruby']
1050+
let g:markdown_fenced_languages = ['html', 'python', 'bash=sh', 'json', 'javascript', 'ruby', 'glsl']
10501051

10511052
" To refresh the list of plugins installed, uncomment the line below and hit
10521053
" command-E on it (see the <d-e> mapping in this file

0 commit comments

Comments
 (0)