Skip to content

Commit

Permalink
Merge pull request #2 from eko/add-dockerip
Browse files Browse the repository at this point in the history
Added "dockerip" alias and fixed Git configuration
  • Loading branch information
eko committed Oct 1, 2018
2 parents 682c080 + 0da9b42 commit bcb32dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .aliases
Expand Up @@ -34,6 +34,8 @@ alias curltime="curl -w \"\nConnect: %{time_connect} TTFB: %{time_starttransfer}
alias doc="docker-compose"
alias doce="docker-compose exec"

alias dockerip="docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'"

# Golang list imports recursively in a project
alias golist='go list -f "$(printf '"'"'{{.ImportPath}}:\n{{range .Imports}} {{.}}\n{{end}}'"'"')" ${1+"$@"}'

Expand Down
6 changes: 5 additions & 1 deletion .gitconfig
Expand Up @@ -25,9 +25,12 @@
[alias]
a = add
aa = add --all :/
authors = shortlog -sn --no-merges
b = branch -avv
bd = branch -d
bm = branch -m
brd = !git branch --merged | grep -v master && echo "Type 'git brdf' to delete all these branches"
brdf = !git branch --merged | grep -v master | xargs git branch -d
ci = commit
cia = commit --amend
ciaa = commit --all --amend
Expand All @@ -51,7 +54,8 @@
lc = log --oneline --decorate --graph --left-right
lch = !git log --oneline --decorate --graph --left-right HEAD...$1
lf = log --oneline --decorate --follow --
lg = log --oneline --decorate --graph
lga = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset%s %Cgreen(%an %cd)%Creset' --abbrev-commit --date=iso
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset%s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative
m = merge
n = config --local user.name
r = rebase
Expand Down

0 comments on commit bcb32dd

Please sign in to comment.