unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Guix implementation for bullet-train
@ 2021-03-09 20:31 Phil
  0 siblings, 0 replies; only message in thread
From: Phil @ 2021-03-09 20:31 UTC (permalink / raw)
  To: help-guix

Hi all,

I've implemented a basic Guix plugin for Oh-My-Zsh's Bullet Train theme.

I plan to add more functionality going forwards as I think of more use cases.

Bullet Train is a fancy console prompt that supports Python, Ruby, Git, AWS, etc
- by augmenting the command prompt with contextual about the current
console environment and directory location.

I based the Guix plugin on the Python virtualenv one - but thinking
about how to represent Guix environmental data, it's more complex than
virtualenvs as it's not just a binary virtualenv is active or not.

I've made some simple assertions below - if anyone has an opinion on
this let me know.

- Guix profiles can be stacked on top of each other, and the order is
  relevant.  Unlike virtualenvs, we can source many profiles and we need
  to be able to visually reference this.  I do this by listing profiles
  in the order they were sourced from left to right:
  .guix_profile ← my_profile ← some_other_profile
- Guix environments (excluding --pure) can also be added to this stack
  with environments running on top of profiles, or you can source a
  profile from inside an environment.  However when an environment is
  exited it and any profiles stacked on top of it are lost, and must be
  pruned from the visual representation:
  .guix_profile ← my_environment ← some_other_profile

  But on exit from the environment the visual representation will be
  pruned to this:
  .guix_profile


Thanks,
Phil.

My fork:
https://github.com/falloutphil/bullet-train.zsh

My changes:
https://github.com/caiogondim/bullet-train.zsh/compare/master...falloutphil:master


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-09 20:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 20:31 Guix implementation for bullet-train Phil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).