oh-my-bash/themes/powerline-naked/powerline-naked.base.sh
2022-02-01 01:42:50 +09:00

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 ))
}