Skip to content

Instantly share code, notes, and snippets.

@jnbek
Created June 27, 2011 15:55
Show Gist options
  • Select an option

  • Save jnbek/1049136 to your computer and use it in GitHub Desktop.

Select an option

Save jnbek/1049136 to your computer and use it in GitHub Desktop.
zsh prompts
SJOBS=`jobs | sed "s/ */ /g" | cut -d" " -f1,3-`
if [[ "$WINDOW" == "" ]]; then
export PS1="$SJOBS
[J:%j]%n@%m($BRAND):%d%# " # prompt string
else
export PS1="$SJOBS
[J:%j][$WINDOW]%n@%m($BRAND):%d%# " # prompt string showing screen window
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment