Slimline can be customized using a variety of environment variables. For an example on how to do so see the example.
- Prompt Symbol
- Current Working Directory
- Exit Status
- Execution Time
- User and Host Info
- AWS Profile Info
- Auto Correction
- Python Virtualenv
Defines the symbol of the prompt. Default is ∙
.
Defines the color of the prompt when asynchronous tasks are running. Default is red
.
Defines the color of the prompt when all asynchronous tasks are finished. Default is white
.
Defines the color of the current working directory. Default is cyan
.
Defines the color of the current working directory if it equals the root directory /
. Default is red
.
Defines whether the exit status is displayed if the exit code is not zero. Default is 1
.
Defines the symbol of the exit status glyph. Default is ↵
.
Defines the color of the exit status information. Default is red
.
Defines whether the runtime of a process is displayed if it exceeds the maximum execution time
specified by the option below. Default is 1
.
Defines the maximum execution time of a process until its run time is displayed on exit.
Default is 5
seconds.
Defines the color of the execution time. Default is yellow
.
Defines whether the user@host
part is displayed if the user differs from the default user or if connected to a ssh server. Default is 1
.
Defines the color of the user. Default is green
.
Defines the color of the user if the user is root. Default is red
.
Defines the color of the host. Default is yellow
.
Username to consider as the default user. By default this is the current effective user (i.e. the output of whoami
)
Defines whether value of AWS_PROFILE
environment variable should be displayed. Default is 0
.
Defines the color of aws profile info. Default is blue
.
Defines the color of the misspelled string for which is correction is proposed. Default is red
.
Defines the color of the proposed correction of a misspelled string. Default is green
.
Defines whether active python virtualenv shall be displayed. Default is 1
.
Defines the color of the virtualenv name. Default is cyan
.
Defines the color of the parens surrounding the virtualenv name. Default is white
.
Defines whether git information shall be displayed (requires python). Default is 1
.
Here is an example for customizing the prompt symbol as well as the git repository indicator and branch format:
export SLIMLINE_PROMPT_VERSION=1 # Activate legacy option format
export SLIMLINE_PROMPT_SYMBOL='$'
# If you have a powerline compatible font you can also use the alternative repo indicator ''.
export GITLINE_REPO_INDICATOR='${reset}git'
export GITLINE_BRANCH='[${blue}${branch}${reset}]'
source "<path-to-slimline>/slimline.zsh"