Skip to content

Instantly share code, notes, and snippets.

View JonathanGuberman's full-sized avatar

Jonathan Guberman JonathanGuberman

View GitHub Profile
@kyraocean
kyraocean / 01-seeyouspacecowgirl.sh
Last active January 24, 2022 03:04
SEE YOU SPACE COWBOY|GIRL cosmic-colored terminal logout
#!/usr/bin/env bash
# SEE YOU SPACE COWGIRL by KYRA OCEAN (kyraocean.com) (July 2014)
# Displays a timeless message in your terminal with cosmic color effects
# Usage: add "sh ~/seeyouspacecowgirl.sh; sleep 2" to .bash_logout (or similar) in your home directory
# (adjust the sleep variable to display the message for more seconds)
# Cosmic color sequence
@wadey
wadey / iterm2.zsh
Last active March 10, 2024 00:32
Change iTerm2 tab color when using SSH
# Usage:
# source iterm2.zsh
# iTerm2 tab color commands
# https://iterm2.com/documentation-escape-codes.html
if [[ -n "$ITERM_SESSION_ID" ]]; then
tab-color() {
echo -ne "\033]6;1;bg;red;brightness;$1\a"
echo -ne "\033]6;1;bg;green;brightness;$2\a"