Skip to content

Instantly share code, notes, and snippets.

View grodrigo's full-sized avatar

Rodrigo Gil Lopetegui grodrigo

View GitHub Profile
@grodrigo
grodrigo / pomodoro.sh
Created November 7, 2021 02:55 — forked from AnderRasoVazquez/pomodoro.sh
[A simple pomodoro script for Bash shell] #shell #bash
#!/bin/bash
## pomodoro script by Ander Raso Vázquez anderraso@gmail.com
############## DOCUMENTATION ###################
## After a pomodoro of 25 min -> 5 min break
## After 4 pomodoros done -> 15 min break
##
## USAGE
## [command] [number of pomodoros]
## example:
##
# Creates an alias called "git hist" that outputs a nicely formatted git log.
# Usage is just like "git log"
# Examples:
# git hist
# git hist -5
# git hist <branch_name>
# git hist <tag_name> -10
##
git config --global alias.hist "log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --graph --date=short"