[bash] prompt environment type at make dotfiles installation #247

Open
opened 2026-11-22 13:00:05 +01:00 by vlw · 0 comments
Owner

We should consider adding a prompt when running make dotfiles if the target environment is a "dev" or "prod" environment. While we could certainly use this distinction for future environment changes, my first thought was that for a production environment, the default bash PS1 could be changed from:

export PS1='\[\e[38;5;46m\]\u\[\e[38;5;2m\]@\[\e[38;5;46m\]\h\[\e[38;5;2m\]:\[\e[38;5;33m\]\w\[\033[0m\]$ '


Skärmbild 2026-11-22 125602
to something that distinguishes that environment as important, or "be careful here".


Skärmbild 2026-11-22 125807
This is the PS1 I use on the production server for https://srv.vlw.se. I think we should use something that adheres to the conventions defined in the dotfiles though.

We should consider adding a prompt when running `make dotfiles` if the target environment is a "dev" or "prod" environment. While we could certainly use this distinction for future environment changes, my first thought was that for a production environment, the default bash `PS1` could be changed from: https://git.vlw.se/vlw/dotfiles/src/commit/3970f0c5e84b61b71ee047e496939a5ae14f26af/.bash_profile#L7 ![Skärmbild 2026-11-22 125602](/attachments/a0fc17bb-a4bb-482a-98e3-5c90e31853a8) to something that distinguishes that environment as important, or "be careful here". --- ![Skärmbild 2026-11-22 125807](/attachments/dbad6b56-63b9-4a28-9180-4910ac84ae11) This is the `PS1` I use on the production server for https://srv.vlw.se. I think we should use something that adheres to the conventions defined in the dotfiles though.
Sign in to join this conversation.
No labels
bug
feature
refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vlw/dotfiles#247
No description provided.