Unison Bash Completion
If you don't use unison to keep folders synchronized you really should, it's great. It's like a two way rsync program. Problem is I end up synchronizing a bunchy of folders in different locations for different projects and I prefer to start unison at the command-line. What I want is bash completion for unison. It's not that difficult to setup. I just created a file in /etc/bash_completion.d called "unison" and it looks like this: _unison() { local cur prev opts COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" opts=$(python -c 'import glob,os,os.path;x = glob.glob(os.path.expanduser("~/.unison/*.prf")); print " ".join([os.path.split(y)[-1][:-4] for y in x])') COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 } complete -F _unison unison-gtk The python part is all one line and it goes to my ~/.unison folder, lists all the *.prf files and then just gets
Comments
Thanks for posting a picture of the stand, I couldn't remember the name of it.
I would go back to Salzburg if I was in Europe just for one more of those.
I know of only one place to get them in the states: Vail Sausage Company in Vail, Colorado. The owner is a chef from Austria!
I've looked for Vail Sausage Co. but does it go by another name and do you remember where in Vail it was located? I was hooked on Bosna when I was in Salzburg in the 1980's.
Thanks so much,
Cherie