Skip to content

Instantly share code, notes, and snippets.

View kimminss0's full-sized avatar

Minseo Kim kimminss0

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]}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.kimminss0.ssh-agent</string>
<key>EnvironmentVariables</key>
<dict>
<key>SSH_ASKPASS</key>
<string>/opt/homebrew/bin/ssh-askpass</string>