Powerline naked theme refactor

- Split functions and options in two files
- Import common functions from powerline theme
- Add README.md
This commit is contained in:
Eduardo Bellido Bellido
2016-10-30 01:11:50 +02:00
parent 7229838c5b
commit 47e6d57a82
3 changed files with 107 additions and 92 deletions

View File

@@ -0,0 +1,15 @@
. "$BASH_IT/themes/powerline/powerline.base.bash"
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]} ${normal}"
(( SEGMENTS_AT_LEFT += 1 ))
}