diff options
author | Ross Lafferty <ross.lafferty@gmail.com> | 2018-09-01 07:37:05 -0400 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2018-09-01 13:37:05 +0200 |
commit | 0853b74fef0fa3a05af7487ff9b15a7f714bb037 (patch) | |
tree | d32918a5a83c760d284cdb783dcc15a8ce9591b2 /plugins/jump | |
parent | 9f1ffc64f1cc9b82ee38b5a947033aa77e16e178 (diff) | |
download | zsh-0853b74fef0fa3a05af7487ff9b15a7f714bb037.tar.gz zsh-0853b74fef0fa3a05af7487ff9b15a7f714bb037.tar.bz2 zsh-0853b74fef0fa3a05af7487ff9b15a7f714bb037.zip |
jump: fix printf path output (#7105)
Using the `jump` plugin, using the `marks` command will yield this output:
```
$ marks
desktop marks:printf:5: bad option: ->
dotfiles marks:printf:5: bad option: ->
home marks:printf:5: bad option: ->
```
the `marks` function uses `printf` with `->` and I believe `-` is used by `printf` for left-justification. changing this to `-- "->"` seems to render the appropriate output.
```
desktop -> /Users/uname/Desktop
dotfiles -> /Users/uname/.dotfiles
home -> /Users/uname
```
Diffstat (limited to 'plugins/jump')
-rw-r--r-- | plugins/jump/jump.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jump/jump.plugin.zsh b/plugins/jump/jump.plugin.zsh index 86d9553a2..168dfaba2 100644 --- a/plugins/jump/jump.plugin.zsh +++ b/plugins/jump/jump.plugin.zsh @@ -32,7 +32,7 @@ marks() { local markname="$fg[cyan]${link:t}$reset_color" local markpath="$fg[blue]$(readlink $link)$reset_color" printf "%s\t" $markname - printf "-> %s \t\n" $markpath + printf -- "-> %s \t\n" $markpath done } |