Skip to content

Instantly share code, notes, and snippets.

View risadams's full-sized avatar
💡
I may be slow to respond.

Ris Adams risadams

💡
I may be slow to respond.
View GitHub Profile

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@risadams
risadams / task_graph.groovy
Last active May 17, 2022 12:01 — forked from jrodbx/task_graph.groovy
Mermaid visualization of a Gradle project's task graph
gradle.taskGraph.whenReady {
println ''
println '----------------------------------------'
println ''
println 'Generating Task Graph:'
def mermaid = new File(rootProject.buildDir, 'project.mermaid')
mermaid.delete()
def command = "./gradlew " + gradle.startParameter.getTaskNames().join(" ")