2014-04-23 @ 10:18

Avert Vim's auto completion slowness on networked filesystem

I work a lot on networked filesystem last days (as I already mentioned in my previous article). Unfortunately Vim has run into problems with autocompletetion. It was just insanely slow confused, because Vim has tried to search for matching words also in included files. The solution for me was to disable scanning for included files in insert mode like this:

set complete-=i
show more »

2014-04-22 @ 13:46

Disable version control info in zsh prompt on sshfs mount

Some days ago I wrote big amount of test and because my computer is kinda slow I decided to put the project onto a server (with much more computing power) to do the testing stuff there. To save some time pushing and pulling over and over again, I mounted the directory with my project via sshfs.

sshfs jiri@some.server.com:my_project ~/projects/my_project

So far was everything ok until I tried to cd to the mounted location. My terminal has frozen! Surprisingly I was able to open mounted directory in nautilus. After some research I found the problem - my zsh prompt has done it, because I had some handy git informations there. It takes really LOT of time to get git status over sshfs.

I have hacked my prompt to disable version control info in my prompt when pwd is mounted via sshfs. This is what I came with:

autoload -U colors
autoload -Uz vcs_info


zstyle ':vcs_info:*' enable git hg svn
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' stagedstr '%F{green}M%f' 
zstyle ':vcs_info:*' unstagedstr '%F{yellow}M%f'
zstyle ':vcs_info:git*+set-message:*' hooks git-untracked
zstyle ':vcs_info:git*' formats " %s %b %m%c%u"

+vi-git-untracked() {
  if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == 'true' ]] && \
    git status --porcelain | grep '??' &> /dev/null ; then

precmd () {
  if (! mountpoint -q $PWD ); then
    echo ""

PROMPT="%B%~%b %{$fg_bold[red]%}%#%{$reset_color%} "
RPROMPT='%h %n%{$fg_bold[red]%}@%{$reset_color%}%m${vcs_info_msg_0_}'

This is how my prompt looks like:

my zsh prompt

show more »

2014-03-19 @ 16:38

Habanero & Bird-Eye Chilli Hot Sauce

I'am enjoying one month of parent holiday (Elternzeit in German) which started at 6th of March. I have decided to not to touch programming at all. I've somehow missed my college's hot sauces we have used to enhance every lunch and that's why I have decided to prepare one of them.

The following sauce has about 250.000 - 300.000 scoville which is quite hot, but it's still very tasty. The sauce has habanero like flavor, little sweet with a wonderful color and great aroma. Big thanks to Hartog for sharing his recipe.

You will need:

  • 5 habaneros
  • 300gr Birds eye
  • 1 onion
  • 1/2 head garlic
  • 1/2 cup vinegar
  • 1 cup water
  • 2 tbsp honey
  • 2 tbsp salt
  • 1 tsp cumin
  • 1 tsp curcuma
  • 2 tsp coriander seed (whole, dried)
  • 1/2 tsp cinamon
  • 1 cup vegetable oil
  • juice of a lemon

Bird-Eye chillis


Here is the original recipe (by Hartog):

Over low heat, glace the onion and garlic. Add spices, except coriander and stir until the onions are colored and the aroma fills your kitchen. Add the fluids and the chilies. try to keep the mixture from boiling for about ten minutes, then crank up the heat and once it boils (and all germs, etc. have died off) set aside to cool down for about 30 minutes. Blend until the consistency is yours.

Cooking the stuff


I have followed all the steps and at the end I have filled small preserving glasses with the sauce and put them to 80°C warmed oven for 10 minutes. The result is great (especially for pizza and Döner)! Good appetite, but be careful! fire scream_cat

show more »


Jiri Chara My name is Jiří Chára and I am an intermediate Ruby and JavaScript developer. I was born in Plzeň the home of the Pilsner Beer. I currently live in Karlsruhe, Germany together with my wife and my daughter. I work as a Ruby on Rails developer at OrganisedMinds.

see more »

Copyright © 2014 Jiří Chára. All Rights Reserved.