Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: timvideos/HDMI2USB-litex-firmware
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b7cb1cdd12c7
Choose a base ref
...
head repository: timvideos/HDMI2USB-litex-firmware
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 496105fb6626
Choose a head ref
  • 3 commits
  • 1 file changed
  • 1 contributor

Commits on Jan 24, 2016

  1. scripts: More fancy prompt.

    mithro committed Jan 24, 2016
    Copy the full SHA
    99764f7 View commit details
  2. Copy the full SHA
    de7d3f6 View commit details
  3. Merge pull request #179 from mithro/prompt

    scripts: More fancy prompt.
    mithro committed Jan 24, 2016
    Copy the full SHA
    496105f View commit details
Showing with 22 additions and 1 deletion.
  1. +22 −1 scripts/setup-env.sh
23 changes: 22 additions & 1 deletion scripts/setup-env.sh
Original file line number Diff line number Diff line change
@@ -132,4 +132,25 @@ alias python=python3
export HDMI2USB_ENV=1

# Set prompt
PS1="(HDMI2USB)$PS1"
ORIG_PS1="$PS1"
hdmi2usb_prompt() {
P=""
if [ ! -z "$BOARD" ]; then
P="$P B=$BOARD"
fi
if [ ! -z "$TARGET" ]; then
P="$P T=$TARGET"
fi
if [ ! -z "$PROG" ]; then
P="$P P=$PROG"
fi

if [ ! -z "$P" ]; then
P="(H2U$P) $ORIG_PS1"
else
P="(HDMI2USB) $ORIG_PS1"
fi

PS1=$P
}
PROMPT_COMMAND=hdmi2usb_prompt