diff --git a/README.md b/README.md index 4467a04..71cd9d3 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Using [fisher](https://github.com/jorgebucaran/fisher): fisher add ajeetdsouza/zoxide ``` -Using [omf](https://github.com/oh-my-fish/oh-my-fish): +Using [oh-my-fish](https://github.com/oh-my-fish/oh-my-fish): ```sh omf install https://github.com/ajeetdsouza/zoxide ``` diff --git a/functions/z.fish b/functions/z.fish index cc54b8d..1e05067 100644 --- a/functions/z.fish +++ b/functions/z.fish @@ -6,9 +6,7 @@ function z cd (string sub -s 8 -- "$_Z_RESULT") commandline -f repaint case '*' - if test -n "$_Z_RESULT" - echo "$_Z_RESULT" - end + echo -n "$_Z_RESULT" end end end