Skip to content

Instantly share code, notes, and snippets.

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@rkawajiri
rkawajiri / build.gradle
Created April 30, 2015 14:20
gradleでgitのrepositoryの状態をチェックして,git-flowからversionを読み取ってpublish
import org.ajoberstar.grgit.Grgit
def getVersionName = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags'
standardOutput = stdout
}
return stdout.toString().trim()
}