Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zsh-git-prompt: Init at 0.5 #25515

Merged
merged 1 commit into from
May 9, 2017
Merged

zsh-git-prompt: Init at 0.5 #25515

merged 1 commit into from
May 9, 2017

Conversation

league
Copy link
Contributor

@league league commented May 5, 2017

Motivation for this change

This is a plugin of sorts for your .zshrc that can add status information about the current git repository to your prompt. By default it uses a python script and is thus easy on the dependencies and not really worth packaging. But there's also a Haskell implementation. I set it up sometime back, but then it died when the libgmp version it was compiled with disappeared in a garbage collection. So I decided that the Haskell version of zsh-git-prompt might be worth packaging after all.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

# or
# source ~/.nix-profile/share/zsh-git-prompt/zshrc.sh
# or
# source /nix/store/HASH-zsh-git-prompt-VER/share/zsh-git-prompt/zshrc.sh
Copy link
Member

@Mic92 Mic92 May 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also mention here:

{ #/etc/nixos/configuration.nix
programs.zsh.interactiveShellInit = ''
  source ${pkgs.zsh-git-prompt}/share/zsh-git-prompt/zshrc.sh
'';
}

@league league force-pushed the zsh-git-prompt branch from 1c3012c to d61a424 Compare May 5, 2017 13:19
@league
Copy link
Contributor Author

league commented May 5, 2017

@Mic92 Good suggestion, incorporated that into an improved usage doc.

@league league force-pushed the zsh-git-prompt branch from d61a424 to 853762f Compare May 5, 2017 13:22
@pSub pSub added the 8.has: package (new) This PR adds a new package label May 5, 2017
prePatch = ''
substituteInPlace zshrc.sh \
--replace ':-"python"' ':-"haskell"' \
--replace 'python ' '${python}/bin/python ' \
Copy link
Member

@FRidh FRidh May 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${python.interpreter} instead of ${python}/bin/python

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, incorporated that change into 7c185d4.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
LnL7 Daiderd Jordan
This is a plugin of sorts for your `.zshrc` that can add status
information about the current git repository to your prompt. By
default it uses a python script and is thus easy on the dependencies
and not really worth packaging. But there's also a Haskell
implementation. I set it up sometime back, but then it died when the
libgmp version it was compiled with disappeared in a garbage
collection. So I decided that the Haskell version of zsh-git-prompt
might be worth packaging after all.
@league league force-pushed the zsh-git-prompt branch from 853762f to 7c185d4 Compare May 8, 2017 01:09
@Mic92 Mic92 merged commit f4dd7f9 into NixOS:master May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: package (new) This PR adds a new package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants