GithubHelp home page GithubHelp logo

bash-prompt-builder's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bash-prompt-builder's Issues

unmerged file in rebase don't show up in prompt

at least I think that's the case...

delvarworld@~/repo (no branch! ✎ ) $ git rebase --continue
    components.tt: needs update

git status

    # Changes not staged for commit:
    #   (use "git add <file>..." to update what will be committed)
    #   (use "git checkout -- <file>..." to discard changes in working directory)
    #
    #   modified:   components.tt

components.tt should appear in the prompt, but as you can see in the first line, they don't
the file was not added but it didn't show up

hg branch shows error from cat if .hg/branch does not exist yet

Steps to repro:

  1. Use these settings and PS1="\$(${dvcs_function})\[$COLOR_RESET\] \h:\W \u\$ "
  2. $ hg init empty
  3. cd empty

Expected:

(default) Ed-Brannins-MacBook-Pro:empty ed$ 

Observed:

cat: /Users/ed/tmp/empty/.hg/branch: No such file or directory
() Ed-Brannins-MacBook-Pro:empty ed$ 

I tried replacing this line:

# If we are in mercurial ...
if [ -n \"\$_hg_dir\" ]; then
    hgBranch=\`cat \"\$_hg_dir/.hg/branch\"\`

with this one:

# If we are in mercurial ...
if [ -n \"\$_hg_dir\" ]; then
    hgBranch=`hg branch`

...but now I get this upon opening a new shell, which is why this isn't a pull request:

abort: no repository found in '/Users/ed' (.hg not found)!

tests

man wouldn't that be sweet

git status in beginning of repo is wrong

asdf@~/dev/asdf $ git init
Initialized empty Git repository in /Users/asdf/dev/asdf/.git/
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revision

asdf@~/dev/asdf (git:master:HEAD △ ) $ git commit -m "first commit"
[master (root-commit) 7742e0e] first commit
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 170644 README.md

asdf@~/dev/asdf (git:master:6777e0e) $ git status

On branch master

nothing to commit (working directory clean)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.