Tag: fish

Replacing z with zoxide

Today I once again stumbled upon a painful problem of rupa/z which I was Using since forever. The problem is that once you delete a folder, z will try to cd into it, but then it fails: The directory 'nonxistent' does not exist. I tried to poke around the GitHub issues an…

Install pynvim via homebrew properly

Previously I have written about what I tried and what did and did not work while trying to satisfy neovim's :checkhealth command while detecting the Python provider on Mac M3. Yeah, the solution worked but it was less than optimal, due to the use of --break-system-packages option…

Merge photos into pdf via cmd

Here's a short function for fish shell I am currently using to merge photos into one pdf and then optimize it to massively reduce the resulting size, for instance from 13MB to 230kB without loosing too much quality. Works for me very well, requires GhostScript and ImageMagick 7 o…

Fix ANSI data in nvim execute

After migrating my dotfiles over to Mac M3 I stumbled into roadblock issue for my neovim setup. Every time I saved a PHP file, a lot of garbled data got prepended at the beginning of said file. If you remember so far back, my setup uses prettier for formatting everything, mostly …