b-ryan
Repos
86
Followers
47
Following
1

A beautiful and useful prompt for your shell

5909
709

Marketing / landing page template using cookiecutter and pelican. Ready to deploy to S3 / cloudfront.

5
3

Events

pull request opened
Calculate LN amounts in lnd.balance.sh using msats

This changes the lnd.balance.sh script so that the ln invoices, payments, and fees totals are calculated using msats and then rounded. Before, with the rounding happening before the aggregation, there is a loss of precision.

I discovered this as I was auditing my balances and saw that the fees I was manually calculating differed from what raspiblitz said by a few sats. I saw that there is a warning about this in the output, but I wanted to know more and eventually discovered this code. It looked like a straightforward enough thing to change, so I thought I would throw this PR out there.

Created at 3 hours ago
create branch
b-ryan create branch accurate-lnbalance-amounts
Created at 3 hours ago
create branch
b-ryan create branch dev
Created at 3 hours ago
Created at 3 hours ago
issue comment
Firefly III v5.7.12 ran into an error: bccomp(): Argument #2 ($num2) is not well-formed.

I am entering "0.00002"

Created at 17 hours ago
issue comment
add nord theme

Looks pretty cool, thanks

Created at 1 week ago

add nord theme

Merge pull request #521 from pmbauer/master

add nord theme

Created at 1 week ago
pull request closed
add nord theme

Theme from the Nord Palette.

Created at 1 week ago
issue comment
'Map' object is not accountable

I switched the code to using a list comprehension instead. It's considered more Pythonic. See f091bdc

I don't have a way to test CYGWIN, however, so perhaps you could test this when I make a release.

Thanks!

Created at 1 week ago
pull request closed
'Map' object is not accountable

It's needed to perform a 'list' transformation before doing a count of the 'map' object.

Created at 1 week ago

Switch CYGWIN job counting code from map to list comprehension

Closes #516

Created at 1 week ago
issue comment
added symbol showing to cwd and virtual env

I want to come up with a more generic way to enable customizations like this. There are currently too many options and too much dependence on me in order to change the look and feel.

Unfortunately I have neglected this repo too long and am trying to catch up. I am leaning towards closing this as low priority. I am experimenting with a big rewrite of this project, so I'll keep this sort of use case in mind.

Created at 1 week ago
pull request closed
added symbol showing to cwd and virtual env

I'm not sure I did this the best way, maybe you can fix.

Created at 1 week ago

Update README.md

Merge pull request #536 from conr2d/readme-zsh

Update README.md (zsh example)

Created at 1 week ago
pull request closed
Update README.md (zsh example)

When powerline-shell command becomes not accessible accidentally, shell will not work but print the error message like powerline_precmd:1: command not found: powerline-shell constantly.

This PR updates zsh example in README.md to activate powerline-shell only when the command is found.

Created at 1 week ago
pull request closed
Adds MINGW condition to job count

This also contains the list() change for this condition. I'm not super familiar with python, but I think that's a thing that changed in 3, but I'm not sure what the intended version of python is here.

Thanks!

Created at 1 week ago

MINGW condition in job count

Closes #330

Created at 1 week ago
issue comment
segment/jobs does not work in bash on Ubuntu 20.04

Just pushed a commit that should fix this. I will get a release out soon.

Created at 1 week ago
closed issue
segment/jobs does not work in bash on Ubuntu 20.04

pip freeze | grep powerline powerline-shell==0.7.0

The number of jobs always evaluates to -1. The same version of powerline-shell works in Ubuntu 18.04

Created at 1 week ago

add note about testing on zsh

Created at 1 week ago
closed issue
segments/jobs.py does not work in fish shell

num_jobs == -1 regardless of the number of background jobs.

However, when I simply change line 8 to pppid = os.getppid() then num_jobs reports the number of background processes correctly.

Similarly, if line 8 is left alone but line 6 is changed to use os.getpid() rather than os.getppid() then num_jobs also reports the correct number of bakground processes.

I will check if this is also the case in other shells.

Created at 1 week ago
pull request closed
Fix/issue 228

I have a solution for issue #228 if anyone is interested in doing a pull. I don't use this feature but I have and use fish and I get the same counts now when in bash. Let me know if you require any more documentation.

Created at 1 week ago

got this to work with fish

adding a way to force fish mode for testing and to be more explicit

fixing names as suggested

removing need to explicity call out fish from the command line

removing need to explicity call out fish from the command line

Merge commit '33d1ae1ae9a147ecfbd4f33d3b346e4f4767a027' into fix-jobs

Fix jobs segment for bash 5, fish 3

Created at 1 week ago
issue comment
segment/jobs does not work in bash on Ubuntu 20.04

Looks like this may be the answer: https://stackoverflow.com/questions/20725925/get-pid-of-current-subshell -- bash did change the behavior at one point

Created at 1 week ago
issue comment
segment/jobs does not work in bash on Ubuntu 20.04

https://github.com/b-ryan/powerline-shell/issues/228 related

Created at 1 week ago
issue comment
segment/jobs does not work in bash on Ubuntu 20.04

I'm trying to understand how things ever worked. I traced the current behavior back to https://github.com/b-ryan/powerline-shell/pull/99 but I have the same issue as you do, this doesn't work and I'm using Ubuntu 22.

I wonder if bash changed the behavior of $() in more recent versions. Do you use bash?

Created at 1 week ago
closed issue
Installation Issues

Hi, I just can't figure it out, I'm still quite a noob regarding CLI

When I try installing via git, I get this:

git clone https://github.com/b-ryan/powerline-shell
cd powerline-shell
python setup.py install
fatal: destination path 'powerline-shell' already exists and is not an empty directory.
running install
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-43706.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /Library/Python/2.7/site-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  https://setuptools.readthedocs.io/en/latest/easy_install.html

Please make the appropriate changes for your system and try again.

when I try installing via pip install powerline-shell, I get this: zsh: command not found: pip

Don't know what to make of this :/

Created at 1 week ago
issue comment
Installation Issues

Sorry I didn't help on this. If you still have any issues I am happy to help. Just re-open.

Created at 1 week ago
closed issue
Paginação da Área de Search

Paginação da Área de Search Observação: Foi uma área que iniciaram porem por falta de definição não pode ser finalizado ou algo assim.

WhatsApp Image 2022-03-25 at 09 39 11

Created at 1 week ago
issue comment
Paginação da Área de Search

Sorry I think you must have the wrong project.

Created at 1 week ago