Beispiel #1
0
def set_prompt(powerline, psvar, side, theme):
	try:
		savedps = zsh.getvalue(psvar)
	except IndexError:
		savedps = None
	zpyvar = 'ZPYTHON_POWERLINE_' + psvar
	prompt = Prompt(powerline, side, theme, psvar, savedps)
	zsh.set_special_string(zpyvar, prompt)
	zsh.setvalue(psvar, '${' + zpyvar + '}')
Beispiel #2
0
def set_prompt(powerline, psvar, side, theme, above=False):
	try:
		savedps = zsh.getvalue(psvar)
	except IndexError:
		savedps = None
	zpyvar = 'ZPYTHON_POWERLINE_' + psvar
	prompt = Prompt(powerline, side, theme, psvar, savedps, above)
	zsh.set_special_string(zpyvar, prompt)
	zsh.setvalue(psvar, '${' + zpyvar + '}')
Beispiel #3
0
def set_prompt(powerline, psvar, side, theme, above=False):
    try:
        savedps = zsh.getvalue(psvar)
    except IndexError:
        savedps = None
    zpyvar = 'ZPYTHON_POWERLINE_' + psvar
    prompt = Prompt(powerline, side, theme, psvar, savedps, above)
    zsh.eval('unset ' + zpyvar)
    zsh.set_special_string(zpyvar, prompt)
    zsh.setvalue(psvar, '${' + zpyvar + '}')
    return ref(prompt)
Beispiel #4
0
def set_prompt(powerline, psvar, side):
	savedps = zsh.getvalue(psvar)
	zpyvar = 'ZPYTHON_POWERLINE_' + psvar
	prompt = Prompt(powerline, side, psvar, savedps)
	zsh.set_special_string(zpyvar, prompt)
	zsh.setvalue(psvar, '${' + zpyvar + '}')
Beispiel #5
0
def set_prompt(powerline, psvar, side):
    savedps = zsh.getvalue(psvar)
    zpyvar = "ZPYTHON_POWERLINE_" + psvar
    prompt = Prompt(powerline, side, psvar, savedps)
    zsh.set_special_string(zpyvar, prompt)
    zsh.setvalue(psvar, "${" + zpyvar + "}")
Beispiel #6
0
def set_prompt(powerline, psvar, side):
    savedps = zsh.getvalue(psvar)
    zpyvar = 'ZPYTHON_POWERLINE_' + psvar
    prompt = Prompt(powerline, side, psvar, savedps)
    zsh.set_special_string(zpyvar, prompt)
    zsh.setvalue(psvar, '${' + zpyvar + '}')