{"action":"opened","issue":{"url":"https://api.github.com/repos/lzybkr/PSReadLine/issues/261","labels_url":"https://api.github.com/repos/lzybkr/PSReadLine/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/lzybkr/PSReadLine/issues/261/comments","events_url":"https://api.github.com/repos/lzybkr/PSReadLine/issues/261/events","html_url":"https://github.com/lzybkr/PSReadLine/issues/261","id":93036428,"number":261,"title":"Support for RPROMPT?","user":{"login":"rschmitt","id":3725049,"avatar_url":"https://avatars.githubusercontent.com/u/3725049?v=3","gravatar_id":"","url":"https://api.github.com/users/rschmitt","html_url":"https://github.com/rschmitt","followers_url":"https://api.github.com/users/rschmitt/followers","following_url":"https://api.github.com/users/rschmitt/following{/other_user}","gists_url":"https://api.github.com/users/rschmitt/gists{/gist_id}","starred_url":"https://api.github.com/users/rschmitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rschmitt/subscriptions","organizations_url":"https://api.github.com/users/rschmitt/orgs","repos_url":"https://api.github.com/users/rschmitt/repos","events_url":"https://api.github.com/users/rschmitt/events{/privacy}","received_events_url":"https://api.github.com/users/rschmitt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-04T18:30:04Z","updated_at":"2015-07-04T18:30:04Z","closed_at":null,"body":"In zsh, the RPROMPT environment variable allows right-aligned prompt text to be defined; it's a great place to stick things like the current time, [git status information](https://github.com/olivierverdier/zsh-git-prompt), and so on. (I think bash has an equivalent called RPS1.) I'd love to be able to have something like this in PS, but I haven't been able to figure out a way to do it. I can only get so close:\r\n\r\n1. I can write an RPROMPT, wrap around to the next line, and write the regular prompt()\r\n2. I can write an RPROMPT on the same line as the prompt() (by going through RawUI), but it will vanish once I start typing\r\n\r\nI'm not sure if this sort of thing is within PSReadLine's purview at all, but I'd at least like to get an opinion from someone who knows PS really well."}}