Skip to content

Instantly share code, notes, and snippets.

View TomfromBerlin's full-sized avatar
💻
I may be slow to respond.

TomfromBerlin

💻
I may be slow to respond.
  • Berlin/Germany
  • 22:32 (UTC +01:00)
View GitHub Profile
@ConnerWill
ConnerWill / ANSI-escape-sequences.md
Last active January 5, 2026 14:59
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@mattmc3
mattmc3 / 1-setopts.zsh
Last active January 7, 2026 21:20
ZSH - options by framework
## ZSH Options
# http://zsh.sourceforge.net/Doc/Release/Options.html
# Changing Directories
# http://zsh.sourceforge.net/Doc/Release/Options.html#Changing-Directories
setopt auto_cd # if a command isn't valid, but is a directory, cd to that dir
setopt auto_pushd # make cd push the old directory onto the directory stack
setopt pushd_ignore_dups # don’t push multiple copies of the same directory onto the directory stack
setopt pushd_minus # exchanges the meanings of ‘+’ and ‘-’ when specifying a directory in the stack
@vratiu
vratiu / .bash_aliases
Last active December 15, 2025 03:50
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset