Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
set -eu
mode="$1"
url="$2"
chromium_standard='chromium'
chromium_private='chromium --incognito'
firefox_standard='firefox'
firefox_private='firefox --private-window'
if pgrep 'chromium' >/dev/null 2>&1
then
@bobf
bobf / git_prompt.bash
Created March 26, 2021 15:45
Git (prompt
git_prompt () {
red="\033[38;5;196m"
palered="\033[38;5;209m"
blue="\033[38;5;103m"
paleblue="\033[92m"
lightblue="\033[38;5;87m"
altblue="\033[38;5;69m"
reset="\033[0m"
if test "$(git status --porcelain=v1 2>/dev/null | grep "^??" | wc -l | xargs)" = "0"