mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
18 lines
447 B
Bash
18 lines
447 B
Bash
#! bash oh-my-bash.module
|
|
|
|
source "$OSH/themes/powerline/powerline.base.sh"
|
|
|
|
function __powerline_left_segment {
|
|
local OLD_IFS="${IFS}"; IFS="|"
|
|
local params=( $1 )
|
|
IFS="${OLD_IFS}"
|
|
local separator_char=""
|
|
local separator=""
|
|
|
|
if [[ "${SEGMENTS_AT_LEFT}" -gt 0 ]]; then
|
|
separator="${separator_char}"
|
|
fi
|
|
LEFT_PROMPT+="${separator}$(set_color ${params[1]} -) ${params[0]} ${_omb_prompt_normal}"
|
|
(( SEGMENTS_AT_LEFT += 1 ))
|
|
}
|