Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
infrastructure
infrastructure
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 443
    • Issues 443
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • GitLab.com
  • infrastructureinfrastructure
  • Issues
  • #1094

Closed
Open
Opened Feb 01, 2017 by Yorick Peterse@yorickpeterse 
  • Report abuse
  • New issue
Report abuse New issue

Update PS1 across all hosts to more clearly differentiate between hosts and environments

Right now our PS1s look like the following:

yorickpeterse@db1:~$

Here the username@host-part bit is green, and the path is blue. This setup is confusing because it doesn't show the environment one is in (staging vs production), the colours are the same on staging/production, and the hostname is truncated to the first segment ("db1", "worker10", etc).

To make it a bit easier to see what host you're on (whenever you need to SSH into one), we should:

  • Use bold red for production, normal yellow for staging
  • Show more of the hostname, either the full hostname or something like "db1.cluster" / "db1.staging", etc; either way it should include the node name and environment
  • Perhaps show the path in a different color. Dark blue on the usual black background is quite hard to see, perhaps use cyan instead?

Related issues

Assignee
Assign to
Epic
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
2
Labels
availability outage
Assign labels
  • View labels
Reference: gitlab-com/infrastructure#1094