Skip to content

Commit

Permalink
patch starship until starship/starship#2807 lands
Browse files Browse the repository at this point in the history
starship does not have built-in support for xonsh yet, but there are
multiple open efforts to add it, including a PR I opened recently:

    starship/starship#2807

Until that PR lands, I'm switching to using my patched version.

(I was already using a patched version on my mac, which I built locally.
Better to override it in the nix config so I automatically get it on
other machines too.)
  • Loading branch information
jeremyschlatter committed Jun 25, 2021
1 parent 27bd34b commit c2412e0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/xonsh/rc.xsh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ aliases['ff'] = lambda: $['$HOME/.nix-profile/bin/ff']

execx($(colorscheme restore-colors))

execx($(/Users/jeremy/src/github.com/starship/starship/target/release/starship init xonsh))
execx($(starship init xonsh))
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,15 @@
ripgrep # Text search. (Phenomenal grep replacement.)
sd # Text find-and-replace. (Decent sed replacement.)
stack # Build haskell projects.
starship # Nice command prompt.
(starship.overrideAttrs # Nice command prompt.
(oldAttrs: {
src = fetchFromGitHub {
owner = "jeremyschlatter";
repo = "starship";
rev = "xonsh";
sha256 = "sha256-CuOpIb9vGHIUY19IH3cHi7gnXK8v+GQtIMTmjJ0UjBo=";
};
}))
tldr # Show usage examples for common CLI programs.
unzip # Open .zip files.
watch # Run a command repeatedly.
Expand Down

0 comments on commit c2412e0

Please sign in to comment.