Skip to content

Instantly share code, notes, and snippets.

View nickshanks347's full-sized avatar

Nick nickshanks347

  • /dev/null
  • London, UK
View GitHub Profile
@nickshanks347
nickshanks347 / codespaces.zsh-theme
Created December 9, 2022 03:01 — forked from renbaoshuo/codespaces.zsh-theme
GitHub Codespaces ZSH Theme
# Codespaces zsh prompt theme
__zsh_prompt() {
local prompt_username
if [ ! -z "${GITHUB_USER}" ]; then
prompt_username="@${GITHUB_USER}"
else
prompt_username="%n"
fi
PROMPT="%{$fg[green]%}${prompt_username} %(?:%{$reset_color%}➜ :%{$fg_bold[red]%}➜ )" # User/exit code arrow
PROMPT+='%{$fg_bold[blue]%}%(5~|%-1~/…/%3~|%4~)%{$reset_color%} ' # cwd
#! /bin/bash
# version v0.3.0 stable
# executed manually / via Make
# task wrapper for various setup scripts
SCRIPT='setup.sh'
WHITE="\e[37m"
RED="\e[31m"