# Issue with an alias

**URL:** <https://discourse.flox.dev/t/issue-with-an-alias/476>\
**Category:** Bug Reports\
**Created:** [November 8, 2022, 1:51pm UTC](https://discourse.flox.dev/t/issue-with-an-alias/476 "2022-11-08T13:51:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![etorreborre](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/etorreborre/32/428_2.png) [@etorreborre](https://discourse.flox.dev/u/etorreborre)\
**Post date:** [November 8, 2022, 1:51pm UTC](https://discourse.flox.dev/t/issue-with-an-alias/476/1 "2022-11-08T13:51:46Z")

</div>

I discovered that we can add aliases to a flox environment, that’s great.

However flox is choking on this one:

```auto
[aliases]
  ...
  ff="fzf --preview=\"bat {} --color=always\""

```

I get

```auto
○ flox -v activate
+ /nix/store/psgcq0br49h5pgnc4pzmpz88fspzx48w-jq-1.6-bin/bin/jq -r -f /nix/store/0cra2f2fjmxnlrxyx1hn8cksc7bdmgnn-flox-prerelease-0.0.6-r54/lib/manifestTOML.jq -s --arg system x86_64-darwin --argjson verbose 1 --arg profileOwner etorreborre --arg profileName default --arg FLOX_PATH_PREPEND /Users/etorreborre/.local/share/flox/environments/etorreborre/default/bin --args -- bashInit
flox: setting etorreborre/default aliases
+ alias ff="fzf --preview=bat {} --color=always"
/dev/fd/63: line 3: alias: {}: not found

```

If I replace the escaped double-quotes with single quotes then everything works ok.

---

<div class="post-metadata">

**Author:** ![limeytexan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/limeytexan/32/10_2.png) [@limeytexan](https://discourse.flox.dev/u/limeytexan)\
**Post date:** [November 8, 2022, 9:58pm UTC](https://discourse.flox.dev/t/issue-with-an-alias/476/2 "2022-11-08T21:58:51Z")

</div>

> [@etorreborre](#):
>
> If I replace the escaped double-quotes with single quotes then everything works ok.

Yes, that would be the recommended solution. In truth the TOML method of defining aliases and hooks will soon be replaced with more standard hooks as defined using the Nix expression language, so if that workaround works for you then I’d suggest you just keep running with that for now.

Thanks for the feedback!
