Post

pipenv completion in fish shell

If you use Bash as the login shell and Fish as the interactive shell, by simply running 'fish' inside the terminal, you might have seen this error message

pipenv - (line 2): Illegal command name “_pipenv_completion()” _pipenv_completion() { ^ from sourcing file - called on line 2 of file /usr/share/fish/completions/pipenv.fish from sourcing file /usr/share/fish/completions/pipenv.fish called on standard input in command substitution called on standard input source: Error while reading file “-”
This is a known issue, which for the time being will not be resolved. The hack proposed is to run eval (env _PIPENV_COMPLETE=source-fish pipenv), which I aliased in config.fish


alias pipenvcomp='eval (env _PIPENV_COMPLETE=source-fish pipenv)'

An actually good paper notebook

I rarely endorse consumer products because they are mostly garbage. There are exceptions though.
The rocketbook everlast is in my opinion one of those.
It is a paper notebook with just 32 pages. You would think that 32 pages get filled in a few days. Instead, they are never filled! Why? 
I didn't tell you all the truth: the surface is not actually paper. It is a polyester blend (read: a type of plastic) designed for Pilot Frixion pens. Their ink can be easily wiped off by moistening the included microfiber cloth.
The other essential part of this notebook is the smartphone app, which you can use to quickly create a PDF document by taking pictures of the pages you're interested in. It supports other formats too (png, gif, ...).
The app allows you to send the pages to 7 different destination (email or cloud providers) depending on the symbol you cross on the bottom of the page. It automatically crops the image at the page borders and applies contrast/luminosity correction to make…