Question: So I want to figure out the Operating System and execute a piece of code based on the operating system in my `.vimrc`. However, I'm not able to understand where I'm going wrong.

```
let operating_system = system("awk -F= '/^NAME/{print $2}' /etc/os-release")
echon operating_system
echon operating_system > "CentOS Linux"
echon operating_system < "CentOS Linux"
echon operating_system ==? "CentOS Linux"
echon operating_system ==# "CentOS Linux"

```

This is the output I get when I start vim:

```
"CentOS Linux"
0100

```

Shouldn't `==?` and `==#` evaluate to 1? If not, why?

Answer: 
The following info can be found in the [official docs](https://github.com/junegunn/fzf/blob/master/doc/fzf.txt) of fzf:

You can execute `:FZF` with an argument for the starting dir. So you can just run `:FZF ~` instead of `:FZF`. If you open the fzf buffer from a mapping just change that mapping:

```
map <c-space> :FZF ~<cr>

```

(Unrelated to the question but related to the autocomand you mentioned: [`'autochdir'`](http://vimdoc.sourceforge.net/htmldoc/options.html#'autochdir'))
You can provide a default path to fzf if you configure it to use [fd](https://github.com/sharkdp/fd) (or [rigrep](https://github.com/BurntSushi/ripgrep) or [ag](https://github.com/ggreer/the_silver_searcher)) in your .bashrc.

Then calling fzf from vim will also use this path as a starting point.

My .bashrc has the following line so all searches being from my home directory:

```
export FZF_DEFAULT_COMMAND="fd . $HOME"

```

(note that on Debian Buster, the command would be "fdfind . $HOME)

I found that this produced too many results, so I implemented a solution to have a subset of the directories in $HOME searched (see a blog post about it [here](https://matt-a-bennett.github.io/fzf_search_dirs/fzf_search_dirs.html))