Skip to content

Commit 689a910

Browse files
committed
Recent tweaks.
1 parent a48538b commit 689a910

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

git/gitconfig.symlink

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
wtf = !$ZSH/bin/git-wtf
1515
rank-contributors = !$ZSH/bin/git-rank-contributors
1616
count = !git shortlog -sn
17+
d = difftool
1718
[color]
1819
diff = auto
1920
status = auto
@@ -38,9 +39,14 @@
3839
default = simple
3940
[init]
4041
templatedir = ~/.git-templates
42+
[difftool "neovim"]
43+
cmd = nvim -d \"$LOCAL\" \"$REMOTE\"
44+
path =
4145
[difftool "sourcetree"]
4246
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
4347
path =
4448
[mergetool "sourcetree"]
4549
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
4650
trustExitCode = true
51+
[diff]
52+
tool = neovim

nvim/config.symlink/nvim/init.vim

+1
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ imap <C-b> <esc>:CtrlPCurWD<cr>
213213
" Fat-fingered commands
214214
" Courtesy of github.com/captainsafia
215215
cnoreabbrev W! w!
216+
cnoreabbrev E! e!
216217
cnoreabbrev Q! q!
217218
cnoreabbrev Qall! qall!
218219
cnoreabbrev Wq wq

zsh/senseye-aliases.zsh

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# Jump to backend directory
22
alias cdbe="cd ~/src/bitbucket.org/senseye/backend"
33

4+
# Jump to senseye dir.
5+
alias cds="cd ~/src/bitbucket.org/senseye"
6+
47
# sets GOPATH to the current work directory
58
alias gohere="export GOPATH=\`pwd\`; echo \"GOPATH := '\$GOPATH'\"; PATH=\"$PATH:\$GOPATH/bin\"; echo \"PATH = \$PATH\""
69

710
# runs go test and shows code coverage when complete
811
alias gocover="go test -coverprofile=coverage.out && go tool cover -html=coverage.out"
912

10-
# build and run docker-compose
11-
alias figit="docker-compose build && docker-compose up"
13+
# run make test three times and tell me when it's done
14+
alias mt3="make test && make test && make test; tada"
1215

1316
# prints out the greatest port number exposed in a docker-compose.yml across all services.
1417
alias last_port="find ${SENSEYE_BACKEND} -name 'fig.yml' -o -name 'docker-compose.yml' -exec cat {} \; | grep -E '\b5[0-9]+:[0-9]+' | sed -E 's/[^0-9]*([0-9]+):([0-9]+)[^0-9]*/\1/g' | sort -n | tail -1"

zsh/zshrc.symlink

+3
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ DEFAULT_USER="rossmcf"
4646
plugins=(git osx golang z colorize docker)
4747

4848
source $ZSH/oh-my-zsh.sh
49+
50+
autoload -U +X bashcompinit && bashcompinit
51+
complete -o nospace -C /usr/local/bin/terraform terraform

0 commit comments

Comments
 (0)