Skip to content

Add support to show current date and time #321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 17, 2022

Conversation

flybyray
Copy link
Contributor

@flybyray flybyray commented Jul 23, 2021

Fixes #238

This allows to give a time layout as argument. See details Time.Format

function _update_ps1() {
    PS1="$(powerline-go -error $? -jobs $(jobs -p | wc -l) -newline -time '06-01-02 15:04:05' -modules time,cwd,exit,git,hg,host,jobs,perms,root,ssh,user,venv )"
}

If no argument given to time option it will use the default before this pull request.

Update as requested.
Thanks a lot for review!
@embeddedc
Copy link

Could be merged now?

@justjanne justjanne merged commit 712a3a2 into justjanne:main Feb 17, 2022
@flybyray flybyray deleted the flybyray/issue238 branch February 18, 2022 01:42
@vitaly-zdanevich
Copy link

And how to enable this?

@embeddedc
Copy link

And how to enable this?

-modules time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support to show current date and time
4 participants