Source: prompt-vim-mode.bash
This prompt sequence expands to the vim mode name.
# blerc (example)
ble-import contrib/prompt-vim-mode
PS1='[\u@\h \W]\q{contrib/vim-mode}\$ ' # show mode name in PS1
bleopt keymap_vi_mode_show:= # hide mode line
Source: prompt-git.bash
# blerc (example)
ble-import contrib/prompt-git
bleopt prompt_rps1='\q{contrib/git-info}'
This expands to a string that explains the current git status.
This expands to the directory name of the repository.
This expands to the commit hash.
The hash is truncated to the length N
.
The default value for N
is 7
.
This expands to the branch name (or tag name or hash) of HEAD
.
This expands to the current path relative to the root directory of the repository.
Source: prompt-elapsed.bash
Measures the time of the previous command execution.
# blerc (example)
ble-import contrib/prompt-elapsed
bleopt prompt_rps1='\g{fg=69,italic}\q{contrib/elapsed}'
This expands to the high-resolution elapsed time for the command execution.
This expands to the real
time of time
.
This expands to the user
time of time
.
This expands to the sys
time of time
.
This expands to the average cpu usage.