Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • parrot parrot
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • 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
  • org
  • parrotparrot
  • Issues
  • #90

Closed
Open
Created Jun 12, 2021 by Don Pellegrino@user01

Default prompt ($PS1) misaligned when a Python virtual environment is active

The default prompt $PS1 setting from https://nest.parrotsec.org/packages/debian/base-files/-/blob/master/share/dot.bashrc uses line art. However, the styling breaks when a Python virtual environment is activated. Python adds the name of the virtual environment to the prompt, but it bumps the first line and its line art over to the right such that it no longer aligns with the second line.

┌─[htb-abc@htb-ci3uafctuf]─[~]
└──╼ $python3 -m venv test_env
┌─[htb-abc@htb-ci3uafctuf]─[~]
└──╼ $source test_env/bin/activate
(test_env) ┌─[htb-abc@htb-ci3uafctuf]─[~]
└──╼ $

The Parrot OS prompt is stylish, but it would be an improvement if it were also compatible with Python virtual environments.

Assignee
Assign to
Time tracking