Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • L liquidprompt
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Johann Dreo
  • liquidprompt
  • Merge requests
  • !442

Add prefix and postfix not shown in title

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Johann Dreo requested to merge feature/pre-post-title into develop May 12, 2016
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 2

Created by: nojhan

When using LP_ENABLE_TITLE=1, the prompt will be dispalyed as is in the window's title. This could be a problem if you want to customize the prompt with fancy stuff, like a large horizontal line on a new line.

This feature add the LP_PS1_PRETITLE and LP_PS1_POSTTITLE variables, added to PS1 only after the LP_TITLE has been generated.

For example, if you want to add a line separator across all you terminal:

LP_PS1_PRETITLE="$(printf '%*s\n' $(tput cols) '' | tr ' ' '-')"

If you want to customize the typing field:

LP_PS1_POSTTITLE="${WHITE}〉 "

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/pre-post-title