function git-jira-links() {
git log $1 | grep -Eo '([A-Z]{2,}-)([0-9]+)' | sort -u | awk '{ print "https://your.jira.domain/browse/"$1; }'
}
git-jira-links master..develop
# run Rubocop only on modified Ruby files which haven’t been committed to git | |
alias rubogit='git ls-files -m | grep '\.rb$' | xargs bundle exec rubocop' |
sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm
docker rm $(docker ps -q -f status=exited)
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")