aboutsummaryrefslogtreecommitdiffstats
path: root/zsh/themes/prompt_kyrias_setup
blob: 9100f83ae538d5d177a94dd778371561ee4af06a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
prompt_kyrias_help() {
	cat <<EOF
kyrias' prompt.
EOF
}

venv_prompt() {
	if [[ -n "$VIRTUAL_ENV" ]]; then
		print -Pn '(${VIRTUAL_ENV##*/}) '
	fi
}

prompt_kyrias_setup() {
	setopt prompt_subst
	autoload -U colors && colors

	PROMPT='%m:%~ $(venv_prompt)%}λ '
}

prompt_kyrias_preview() {
	prompt_preview_theme kyrias "$@"
}

prompt_kyrias_setup "$@"

# vim: ft=zsh