You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2019. It is now read-only.
Change to the newly created folder using cd sites/all/test.
Expected Result
The drush site-alias that is set by drush use or similar is shown in the prompt
The git branch name will be shown in the bash prompt when in a git repository
There is no noticeable delay when changing folders with cd
Actual Result
The drush site-alias is shown in the prompt as expected.
The git branch name is shown with an extra symbol after it to indicate whether the current local git branch has diverged from the upstream git remote tracking branch (ie. git log branch...origin/branch):
= when the local matches the remote
> when the local is ahead of the remote
< when the local is behind the remote
<> when the local has diverged from the remote
When changing folder using cd or running other commands there is a noticeable delay on slower computers as git calculates the difference between the local and remote branch.
Suggested Solution
Turn-off git checks against the upstream remote for the default bash prompt that comes with Vlad.
Add new default variables for the ansible role playbook bling that provides users with the ability to turn on or off hints altogether for
git
drush
Add new default variables for the ansible role playbook bling that provide values for the git prompt settings currently available
This turn's off checks done by git, in a git repository folder tree, for
Untracked Files
Local changes
Upstream changes (remote)
I've also found that a few packages are missing in the default Centos build that enable effective development. I've had to do a yum install after build to add:
man
man-pages
bash-doc
bash-completion
Also missing is a ~/.profile file. I'll raise these as another issue perhaps, if I can find where the base package installs should happen.
Problem
The default Vlad bash prompt includes Git and drush hints that are is having a noticeable performance impact for some users.
Steps to Reproduce
Checkout the Vlad
dev
branch at or after commitb7e0c22
(See Improved bash prompt hints #346).Configure Vlad by following the installation and getting started steps.
Ensure the Vlad
host_synced_folder
points to a folder containing asites/all/drush/aliases.drushrc.php
)Run
vagrant up
to provision the box.Open a secure shell prompt on the newly provisioned box using
vagrant ssh
.Run
drush status
Get a list of available drush site-alias names using
drush sa
Set the drush site-alias using
drush use @alias
where@alias
is a name listed in the previous stepCreate a new file in the Drupal install path and commit it like this:
mkdir --parents sites/all/test touch sites/all/test/README.txt git add sites/all/test/README.txt git commit -m "Test commit"
Change to the newly created folder using
cd sites/all/test
.Expected Result
drush use
or similar is shown in the promptcd
Actual Result
git log branch...origin/branch
):=
when the local matches the remote>
when the local is ahead of the remote<
when the local is behind the remote<>
when the local has diverged from the remotecd
or running other commands there is a noticeable delay on slower computers as git calculates the difference between the local and remote branch.Suggested Solution
GIT_PS1_SHOWUPSTREAM
GIT_PS1_SHOWUNTRACKEDFILES
GIT_PS1_SHOWSTASHSTATE
GIT_PS1_SHOWDIRTYSTATE
I would like to see these available in
yaml
using a simple, easy to read format like this:Open to suggestions on this as it has to be a data structure that is easy to work with in ansible.
The text was updated successfully, but these errors were encountered: