Skip to content

Instantly share code, notes, and snippets.

View dichotomies's full-sized avatar

Vadim Tschernezki dichotomies

  • University of Oxford
  • United Kingdom
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]}
@dichotomies
dichotomies / LC_COLORS.md
Created March 6, 2018 17:14 — forked from magicznyleszek/LC_COLORS.md
LSCOLORS & LS_COLORS

alternatively use: http://geoff.greer.fm/lscolors/

LSCOLORS

The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color.

The color designators are as follows:

a black