aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-06-14 02:51:32 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-06-14 02:51:32 +0200
commit8fa8dd84a4183584336b9ce1f961119e02fa1cf7 (patch)
tree124e08666fc22b538731b4f199ac93fb9c322181 /conf
parentupdate license email (diff)
downloadlaurent-tools-8fa8dd84a4183584336b9ce1f961119e02fa1cf7.tar.xz
laurent-tools-8fa8dd84a4183584336b9ce1f961119e02fa1cf7.zip
bashrc: add gitunpushed alias
Diffstat (limited to 'conf')
-rw-r--r--conf/bashrc-laurent-public1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/bashrc-laurent-public b/conf/bashrc-laurent-public
index 53a5561..434d122 100644
--- a/conf/bashrc-laurent-public
+++ b/conf/bashrc-laurent-public
@@ -94,6 +94,7 @@ alias gitsta='git stash'
alias gitstap='git stash pop'
# Pushes commits 1by1. Only works if noone has commited before you. Good if you do dev in your own branch.
function gitpush1_branch() { branch=`git rev-parse --abbrev-ref HEAD`; git log origin/$branch..$branch |egrep "^commit .*" |awk "{print \$2} /^commit $1$/ {exit}" |tac |while read c; do cmd="git push origin $c:$branch"; echo $cmd; $($cmd) ||exit; done }
+alias gitunpushed='export GIT_CURRENT_BRANCH=$(git name-rev --name-only HEAD) && git log origin/$GIT_CURRENT_BRANCH..$GIT_CURRENT_BRANCH'
alias dhk='sudo pkill -f dhcpcd'
alias dhc='sudo dhcpcd'