HomePhabricator
Diffusion Comm 70e8837af4b7

[Nix] Add better prompt default for nix shell

Description

[Nix] Add better prompt default for nix shell

Summary:
Provide better prompt default so that it doesn't look
hideous for users which don't have a configured ~/.bashrc

First run

Screen Shot 2022-08-10 at 10.50.46 AM.png (318×1 px, 76 KB)

After changing the font
Screen Shot 2022-08-10 at 10.54.58 AM.png (620×1 px, 157 KB)

After reverting back to my normal setup
Screen Shot 2022-08-10 at 11.00.00 AM.png (160×1 px, 46 KB)

Test Plan:

# Ensure that ~/.bashrc won't affect logic
# Should only be necessary if personally configured
[[ -f ~/.bashrc ]] && mv ~/.bashrc ~/.bashrc.bak

# from any branch
nix develop 'github.com:commE2E/comm?ref=jonringer/better-prompt'

# Prompt should look decent

# restore old bashrc
[[ -f ~/.bashrc.bak ]] && mv ~/.bashrc{.bak,}

Reviewers: abosh, atul, ashoat

Reviewed By: abosh, ashoat

Subscribers: tomek, adrian

Differential Revision: https://phab.comm.dev/D4790

Details

Provenance
jonAuthored on Aug 9 2022, 2:22 PM
Reviewer
abosh
Differential Revision
D4790: [Nix] Add better prompt default for nix shell
Parents
rCOMM43d3a7ce907a: [CMake] Generate protobuf headers as part of build
Branches
Unknown
Tags
Unknown