powerline-shell icon indicating copy to clipboard operation
powerline-shell copied to clipboard

right side prompt

Open jceaser opened this issue 5 years ago • 0 comments

created a working left/right prompt on fish, should work for any shell (like zsh). This is my opening conversation on the topic and I'm looking for feed back. Usage is as such (for fish):

function fish_prompt powerline-shell --shell bare $status end

function fish_right_prompt -d "Write out the right prompt" powerline-shell --shell bare --side right $status end

Configuration is a bit different: { "left": { "segments": ["cwd"], "cwd":{"max_dir_size": 1, "full_cwd":"True"}, }, "right":{"segments": ["exit_code"]} }

jceaser avatar Jul 02 '19 02:07 jceaser