summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-10-18 11:29:47 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-10-18 11:48:53 +0000
commit0d3ce052166f9233587ef7e790253fbc24b0861c (patch)
tree305167b1d5ed7dc1882c5333510c3821422a8f00 /contrib
parentaeda7a62e6f93754a4442973086c7e9b66118331 (diff)
downloadbuildstream-0d3ce052166f9233587ef7e790253fbc24b0861c.tar.gz
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.
Diffstat (limited to 'contrib')
-rwxr-xr-x[-rw-r--r--]contrib/bst-here3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/bst-here b/contrib/bst-here
index 1d5d79829..595807df4 100644..100755
--- 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 \