zsh-snap icon indicating copy to clipboard operation
zsh-snap copied to clipboard

eval command run inside wrong dir

Open mnowotnik opened this issue 2 years ago • 0 comments

Describe the bug

According to the example .zshrc eval command :

# If the first arg is a repo, then the command will run inside it. znap eval trapd00r/LS_COLORS "$( whence -a dircolors gdircolors ) -b LS_COLORS"

Yet command gets run inside $HOME directory

znap eval some/repo "printf 'echo $PWD'"

Steps To Reproduce

znap eval some/repo "printf 'echo $PWD'"

Expected behavior

znap eval should be run inside repository or the documentation should be changed. Is there any way to run initialization scripts inside plugins' repositories?

Environment:

  • OS: Linux
  • Terminal: Tilix
  • Zsh version: 5.8.1
  • Repo version: main b2365b1

mnowotnik avatar Jun 20 '22 15:06 mnowotnik