From 0d3ce052166f9233587ef7e790253fbc24b0861c Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Wed, 18 Oct 2017 11:29:47 +0100 Subject: contrib/bst-here: Set a fixed shell prompt This allows users to distinguish bst-here shell sessions from their regular shell. The prompt is blue and gives you just the path name, e.g.: /src> The prompt can be customised or removed by editing the bst-here script directly. --- contrib/bst-here | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 contrib/bst-here diff --git a/contrib/bst-here b/contrib/bst-here old mode 100644 new mode 100755 index 1d5d79829..595807df4 --- a/contrib/bst-here +++ b/contrib/bst-here @@ -56,8 +56,11 @@ do create_volume_if_not_exists "$vol" done +BST_HERE_PS1="\[\033[01;34m\]\w\[\033[00m\]> " + exec docker run --rm -i${is_tty:+ -t} \ --cap-add SYS_ADMIN \ + --env PS1="$BST_HERE_PS1" \ --device /dev/fuse \ --security-opt seccomp=unconfined \ --volume buildstream-cache:/root/.cache/buildstream \ -- cgit v1.2.1