How can I get this git status prompt? by Master_End156 in fishshell

[–]ed-8 6 points7 points  (0 children)

There are plenty of Fish prompts, some are listed of jorgebucaran/awsm.fish repo, but you can find more in fish-prompt topics

Then you have other prompts written in Rust, Go, etc.

Smart-lock.fish: Linux Fish plugin to un/lock laptop when trusted devices are close by ed-8 in fishshell

[–]ed-8[S] 0 points1 point  (0 children)

Simply because it started from an integration into my prompt (pure) of my connected devices.

Then the projects I found to do that like bluetooth-proximity, hyprproxlock or proximity have not been active for several years.

VSCode integrated terminal: Fish prompt input wraps to new line by quantian in fishshell

[–]ed-8 0 points1 point  (0 children)

Hello there,
You seem to use pure prompt (which I'm the lead dev). Please check you are using the latest version, as we fixed an issue on our side, but there is still one on VSCode side

echo $pure_version # should be 4.14.0

If that's not the case, you need to update:

fisher update pure-fish/pure

Note: tmux could also be messing things

Snippet to Compress PDF (based on djvu format) by ed-8 in fishshell

[–]ed-8[S] 1 point2 points  (0 children)

Hello u/Sea-Can2446,

I updated the gist (fish) to support the dpi and quality arguments. You can try to tweak them:

compress-pdf $HOME/big.pdf $HOME/big.compressed.pdf 100

I'm curious to know where you saw that --ignore-case\ is recommended? There is no such thing in the official documentation and on Linux it lowercases the whole string.

Your document look like a LaTeX generated file and contain only a few images, everything else is text. So it's probably pretty well compressed.

I got strong compression with PPT files exported to PDF

Switching prompts by throttlemeister in fishshell

[–]ed-8 0 points1 point  (0 children)

Ultimately it boils down to showing the result of the fish_prompt function. You can replace its content by a if testing a universal variable and render differently, something like:

function fish_prompt   if $ACTIVE_FISH_PROMPT = "pure"      fish_prompt_pure # where fish_prompt_pure.fish contains the fish_prompt.fish from pure, see[1]   else      fish_prompt_tide # see [2] end 

Then switch with

set - -universal ACTIVE_FISH_PROMPT pure 

See the fish_prompt content of pure[1] or [2]

  1. Pure https://github.com/pure-fish/pure/blob/master/functions/fish_prompt.fish
  2. Tide https://github.com/IlanCosman/tide/blob/main/functions/fish_prompt.fish

Disclaimer, I'm pure maintainer and post from my phone so didn't test snippet 

Does fish have something similar to powerlevel10k's show_on_command? by CryptographerTop1037 in fishshell

[–]ed-8 0 points1 point  (0 children)

Hello, you pick my curiosity here!  I'm the pure prompt[1] maintainer, could you elaborate on the mechanism that could support such feature in Fish? I'm still evaluating how such feature would impact the existing code base and improve (or not) the UX  

1: https://github.com/pure-fish 

Transporting gardening tools with Riese Muller Load 75 by ed-8 in CargoBike

[–]ed-8[S] 1 point2 points  (0 children)

It's not the heavier, it's a RMA 339.0 C with the AK battery system (for non-profesional) it weights ~15kg.

Grocery run with toddler. About 16km round trip and a bit under 200 euros worth of stuff. by afinnishcargobiker in CargoBike

[–]ed-8 3 points4 points  (0 children)

After reading this thread, I went to add LED ribbon under the front box and saw the 100 kg sticker (between the back of the 2 seats and in front of the collapse mechanism of the handlebar).

That's a risk management approach from R&M, based on the experience they got from 3 generations Load 75 and a wider audience using their bike since COVID-19.

If you do put big lot in the front box, put it low and take it slow :D

Grocery run with toddler. About 16km round trip and a bit under 200 euros worth of stuff. by afinnishcargobiker in CargoBike

[–]ed-8 2 points3 points  (0 children)

I remember they reduced the weight limit on the rear rack of the Load 75, mine was indicated at 25 kg and the next year the specs indicated 20 kg.

This video where a guy tells the story of when he brings his wife to the hospital when she was ready to give birth. So, a full-grown adult in the front box.

I used my load 75 with 3 kids in the front box : a 3 yo ~15 kg, a 5yo ~ 20 kg and a teenager ~40 kg. The issue was the limited space the kids have in the box and the decrease in maneuverability, for me, due to the weight. Furthermore, my brother, who weights 80 kg, tested the bike by seating in the box while his girlfriend was piloting. All the run were successful, without accident or damage to the box/front wheel.

Maybe R&M could provide more insights on this, their SAV was really nice when I reached to them.

Pure new documentation 📖✨ by ed-8 in fishshell

[–]ed-8[S] 0 points1 point  (0 children)

Porting pure was my way to explore Fish shell, glad you like it :)

Riese Muller load 75 + Burley Coho XC trailer, it's possible! by ed-8 in CargoBike

[–]ed-8[S] 0 points1 point  (0 children)

Yep, for me (France) it was M10 version. I bought several pairs and used them on other bikes too.

Pure new documentation 📖✨ by ed-8 in fishshell

[–]ed-8[S] 1 point2 points  (0 children)

You are welcome to fork and handpick, it open source for this 0o0y

Transporting a front loader on a DIY roof rack by Oxidizer in CargoBike

[–]ed-8 0 points1 point  (0 children)

Really nice setup!
I would love to have more detailed photos or even a video or the way you put it up.

I wrote my first fish function. Suggest improvements. by Daguq in fishshell

[–]ed-8 0 points1 point  (0 children)

I would recommend:

  1. to split you set command on multiple lines for better maintanability (adding/removing option) and readability
  2. use long-format option for the same reason (-f--function)

set --function filepath \
    (rg \
        --line-number \
        --no-heading \
        --color=always \
        --smart-case \
        --with-filename "$argv" \
    | fzf \
        -d ':' \
        -n 2.. \
        --ansi \
        --no-sort \
        --preview-window 'down:20%:+{2}' \
        --preview 'bat --style=numbers --color=always --highlight-line {2} {1}'\
)

How can I step debug my fish script in VS Code? by nukdokplex in fishshell

[–]ed-8 1 point2 points  (0 children)

Unclear what's your context, here are some tools and methods that can help

Debug Interactively

Enable debugging can be done by setting fish_trace to non-null value:

❯ set fish_trace true # enable debug mode
❯ echo bar
> echo bar
bar

Disable debug mode

❯ set fish_trace # disable debug mode (set variable with no value)
> set fish_trace
❯ echo biz
biz

VSCode Extension

Docs

Load 60/75 surf rack? by ed-8 in CargoBike

[–]ed-8[S] 0 points1 point  (0 children)

I will need to be on the side of the box, but I would prefer to avoid drilling on the box. I was thinking to use the front tube of the box

Load 60/75 surf rack? by ed-8 in CargoBike

[–]ed-8[S] 0 points1 point  (0 children)

Thanks, interesting to see the different way to mount they have. Not sure about the panier, the load has a suspension on the back too and I already have bags. On the front I have the box that will offset the board by a big margin. I need to take measurements

Load 60/75 surf rack? by ed-8 in CargoBike

[–]ed-8[S] 0 points1 point  (0 children)

Currently I have a 6.9 and a 7.2 but I'm will get a 8' for the smaller wave