Comments (10)
deploy@compute-01 ~ % cat .zshrc
# Set up the prompt
autoload -Uz promptinit
promptinit
prompt adam1
Checked some of the other themes, none of them are using \H
for the host, which is the placeholder for the fully qualified domain name (or FQDN).
deploy@compute-01 ~ % hostname
compute-01
deploy@compute-01 ~ % hostname -f
compute-01.ch.example.ch
from appside.
we should define a file in etc
with some vars to source
from appside.
code for this is here https://github.com/ttssdev/appflow/blob/master/playbooks/roles/common/tasks/main.yml#L87-L91, currently disabled.
from appside.
Quote from GitLab.com Database Incident:
TODO after data restored:
- Create issue to change terminal PS1 format/colours to make it clear whether you’re using production or staging (red production, yellow staging)
- Show the full hostname in the bash prompt for all users by default (e.g., “db1.staging.gitlab.com” instead of just “db1”)
from appside.
one idea is to leave hostname like it is:
user@compute-01
but change the color:
- green: development
- blue: testing
- yellow: staging
- red: production
@ocean90 what do you think?
from appside.
Would user@compute-01 [staging]
(plus color) work too?
from appside.
@ocean90 could be an option, basic idea is to keep the prompt as short as possible so maybe:
user@compute-01 [dev]
user@compute-01 [test]
user@compute-01 [stage]
user@compute-01 [prod]
I would suggest to start by grades, so first color, if we see it's not sufficient let's add also the suffix, ok?
from appside.
Isn't it possible to disable or change colors? That's what I see in iTerm:
Colors are probably fine for the start but I always prefer text as it's more accessible. Don't forget that there are people with red–green color blindness. :)
from appside.
True, also: http://serverfault.com/a/323155 ;)
from appside.
For now I won't implement this, if someone would like to take it over feel free to open a pull request.
from appside.
Related Issues (20)
- Support for MySQL flavours/versions HOT 1
- Support for PHP/HHVM flavours/versions HOT 1
- Support for nginx HOT 1
- Support for Varnish flavours/versions
- Migration to xenial as default for atlantis (appflow.py) HOT 1
- fstab
- add nodejs and npm support to jailkit HOT 1
- Don't blindly add bash autocompletion HOT 4
- Version HOT 2
- `appflow vhosts` adds too many newlines HOT 3
- Preventing encrypted data being overwritten by different user HOT 3
- Stats HOT 1
- appflow update & appflow checkin commands seem fragile HOT 1
- appflow - woodwing - add module contentstation HOT 4
- pip3 install appflow doesn't install required dependencies?
- woodwing: config.php / configserver.php removed at rollout HOT 3
- jailkit HOT 2
- WordPress Config: Use https by default and/or add setting for https HOT 9
- woodwing rsync command not working HOT 1
- Documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appside.