Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
K
kali-defaults
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Kali Linux
  • Packages
  • kali-defaults
  • Issues
  • #5

Closed
Open
Opened Jan 04, 2021 by jmg@greseContributor

ZSH Better support for virtual environments

Description

The ZSH terminal doesn't look very good with a python virtual environment. It would be great if better support could be added for virtual environments. Currently, when you activate a venv, the terminal kind of looks broken. The screenshot below shows how to reproduce it, and what it looks like.

venv bug

Steps to Reproduce:

  1. If you don't have "python3-venv" installed, run "sudo apt install python3-venv"
  2. Create a venv: "python3 -m venv venv"
  3. Activate the venv: "source ./venv/bin/activate"
  4. Notice that the terminal looks kinda broken like in the screenshot. Longer venv names would look even worse.

Mockups

I've already started implementing it in the kali zsh theme. Below are a few different options that I've been playing around with. Note that the default prompt will not change. The change is only visible when a virtual environment is activated.

I personally like Option 1 (bold), however I'd like to get some other peoples' opinions on this before raising the PR. Let me know which option you like. I'm also open to other suggestions if anybody has a different idea.

Option 1:

Option 1

Option 1 (bold):

Option 1 bold

Option 2:

Option 1 bold

Option 3:

Option 1 bold

Edited Jan 04, 2021 by jmg
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: kalilinux/packages/kali-defaults#5