Skip to content

Instantly share code, notes, and snippets.

View davidgoldcode's full-sized avatar

David Gold davidgoldcode

View GitHub Profile
diff --git a/.rubocop.yml b/.rubocop.yml
index e6d9b809b1..7320073fe0 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -121,13 +121,80 @@ Style/ConditionalAssignment:
Enabled: false
Layout/ArrayAlignment:
- Enabled: false
+ Enabled: true

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]}