Add alias to show git branches sorted by date
This commit is contained in:
parent
d2f3266731
commit
386b9b76b4
@ -58,6 +58,8 @@ alias take='sudo chown `whoami`:`whoami` '
|
|||||||
alias simple-http-server='python -m SimpleHTTPServer'
|
alias simple-http-server='python -m SimpleHTTPServer'
|
||||||
alias numfiles='find . -maxdepth 1 -type f | wc -l'
|
alias numfiles='find . -maxdepth 1 -type f | wc -l'
|
||||||
alias deepgrep='find . -type f | sed "s/$/\"/g" | sed "s/^/\"/g" | xargs grep --color '
|
alias deepgrep='find . -type f | sed "s/$/\"/g" | sed "s/^/\"/g" | xargs grep --color '
|
||||||
|
# Show list of git branches
|
||||||
|
alias git-br='for k in `git branch|perl -pe s/^..//`; do echo -e ` git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k|head -n 1`\\t$k;done|sort -r'
|
||||||
|
|
||||||
alias sync-pods="rsync --archive --verbose --compress --delete nas:~/podcasts/ $pods_dir"
|
alias sync-pods="rsync --archive --verbose --compress --delete nas:~/podcasts/ $pods_dir"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user