Skip to content

Instantly share code, notes, and snippets.

View elhouse99's full-sized avatar
🥲
:c

elhouse99 elhouse99

🥲
:c
  • Student
  • Mexico
  • 15:45 (UTC -12:00)
  • Instagram joshdguez
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]}
@ntarocco
ntarocco / nico.zsh-theme
Last active July 18, 2026 01:28
Yet another ZSH theme, simple and nice looking
# fork from AVIT ZSH Theme
PROMPT='
$(_user_host)${_current_dir}$(git_prompt_info)
$ '
PROMPT2='%{$fg[grey]%}◀%{$reset_color%} '
#RPROMPT='$(_vi_status)%{$(echotc UP 1)%}$(git_prompt_short_sha) $(_git_time_since_commit) ${_return_status} %T% %{$(echotc DO 1)%}'
RPROMPT='$(_vi_status)%{$(echotc UP 1)%}$(git_prompt_short_sha) ${_return_status} %T% %{$(echotc DO 1)%}'