-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathalien.zsh
36 lines (28 loc) · 985 Bytes
/
alien.zsh
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
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env zsh
# shellcheck disable=SC2034
THEME_ROOT=${0:A:h}
source "${THEME_ROOT}/modules/init.zsh"
source "${THEME_ROOT}/libs/promptlib/activate"
source "${THEME_ROOT}/libs/zsh-async/async.zsh"
source "${THEME_ROOT}/libs/zsh-256color/zsh-256color.plugin.zsh"
source "${THEME_ROOT}/modules/theme.zsh"
source "${THEME_ROOT}/modules/sections.zsh"
source "${THEME_ROOT}/modules/prompt.zsh"
source "${THEME_ROOT}/modules/system.zsh"
source "${THEME_ROOT}/modules/git.zsh"
source "${THEME_ROOT}/modules/hg.zsh"
source "${THEME_ROOT}/modules/svn.zsh"
source "${THEME_ROOT}/modules/async.zsh"
source "${THEME_ROOT}/modules/python.zsh"
source "${THEME_ROOT}/modules/version.zsh"
function precmd(){
autoload -U add-zsh-hook
setopt prompt_subst
alien_load_theme
if [[ ${PROMPT} == "" ]] || [[ ${ALIEN_KEEP_PROMPT} != 1 ]]; then
PROMPT="$(alien_prompt_render_left)"
RPROMPT="$(alien_prompt_render_right)"
fi
alien_async_left_prompt
alien_async_right_prompt
}