You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, when you activate a crate, bulker will change your prompt. You can customize it by specifying the `shell_prompt` attribute in your bulker config. *Make sure you enclose the value in single quotes*; if you use double-quotes the parser will re-escape your prompt escape sequences and break stuff. Here are some examples:
4
+
5
+
In these examples we'll activate the crate like this:
6
+
7
+
```console
8
+
bulker activate databio/lab
9
+
```
10
+
11
+
The variables that could be displayed are these:
12
+
13
+
- namespace: `databio`
14
+
- crate name: `lab`
15
+
- username: `nsheff`
16
+
- host: `zither`
17
+
- working directory: `code`
18
+
19
+
# Default prompt
20
+
21
+
The default bulker prompt shows you the name of the crate you've activated, colored in yellow. Bulker uses `\b` to indicate the name of the bulker namespace and crate. The default prompt is the equivalent of putting this in your config:
In addition the bulker-provided `\b`, there are lots of other shell-provided variables you can use, like `\u` for username and `\h` for hostname, and `\W` for working directory path. You can look up lists of these by searching for *customizing bash PS1 prompt*. Here's a simple sample using *username* and *hostname*:
33
+
34
+
```yaml
35
+
shell_prompt: '[\u@\h(\b) \W] $ '
36
+
```
37
+
38
+

39
+
40
+
## Change colors
41
+
42
+
You can al;so use any terminal colors compatible with your terminal.
0 commit comments