-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprompt.sh
More file actions
24 lines (19 loc) · 717 Bytes
/
prompt.sh
File metadata and controls
24 lines (19 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Needs patched fonts to work: https://github.com/powerline/fonts
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source ${DIR}/git.sh
source ${DIR}/services.sh
source ${DIR}/main.sh
set_bash_prompt() {
arrow_icon=$'\uE0B0'
local next_color=''
# check if git repo exists, determine color
local git="\$(load_git)"
local path="$(load_path $next_color)"
local userhost="$(load_userhost)"
local services="\$(load_services)"
local prompt="$(load_prompt)"
# display
#export PS1="\n${services}\u${userhost}${path}${git}${prompt}"
#export PS1="\\[\n${services}${userhost}${path}${git}${prompt}"
export PS1="\n${services}${userhost}${path}${git}${prompt}"
}