Skip to content

Commit

Permalink
Fix potential issue in dsf alias with spaces
Browse files Browse the repository at this point in the history
If there are no quotes around the arguments the dsf alias won't work
with spaces when used in bash. (Does seem to work in zsh.)

Goes to issue so-fancy#328 / PR so-fancy#358
  • Loading branch information
martijnengler committed Nov 26, 2019
1 parent f65cbdf commit 7cd8f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ diff -u file_a file_b | diff-so-fancy
You could, of course, create a function for it too. In your `~/.bashrc` or `~/.zshrcz` for example:

```shell
function dsf() { diff -u $1 $2 | diff-so-fancy; }
function dsf() { diff -u "$1" "$2" | diff-so-fancy; }
```

And than you can just type `dsf file_a file_b` to get nice looking diff output.
Expand Down

0 comments on commit 7cd8f4c

Please sign in to comment.