Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error msg running with M1 OSX #19

Closed
yeochinyi opened this issue Jul 21, 2022 · 3 comments
Closed

Error msg running with M1 OSX #19

yeochinyi opened this issue Jul 21, 2022 · 3 comments

Comments

@yeochinyi
Copy link

zhpl
/Users/yeochinyi/.zsh_history -> /Users/yeochinyi/.zsh_history.backup
Already up to date.
gpg: encrypted with rsa4096 key, ID DD238E35FB755FD1, created 2022-07-21
"Chris Yeo yeochinyi@gmail.com"
gpg: Signature made Thu Jul 21 20:55:20 2022 +08
gpg: using RSA key 618331508297A026D8FE87730D0C5A4A2BBC62D8
gpg: Good signature from "Chris Yeo yeochinyi@gmail.com" [ultimate]
sed: 1: ":a;N;$!ba;s/\n/ n7dC1gz ...": unused label 'a;N;$!ba;s/\n/ n7dC1gzxa36v5vpfvhW7mgfcxxf7lDnm /g'
sed: 1: ":a;N;$!ba;s/\n/ n7dC1gz ...": unused label 'a;N;$!ba;s/\n/ n7dC1gzxa36v5vpfvhW7mgfcxxf7lDnm /g'
sed: 1: "/Users/yeochinyi/.zsh_h ...": unterminated transform source string

@wulfgarpro
Copy link
Owner

wulfgarpro commented Jul 21, 2022

Can you please apply the below patch, re-run and send me the output?

diff --git a/history-sync.plugin.zsh b/history-sync.plugin.zsh
index 7a1b03d..bc3bc54 100644
--- a/history-sync.plugin.zsh
+++ b/history-sync.plugin.zsh
@@ -12,6 +12,7 @@
 #   https://www.wulfgar.pro
 # ----------------------------------------------------------------
 #
+set -x
 autoload -U colors && colors

 alias zhpl=history_sync_pull

Also, can you please tell me the output from sed --version?

@yeochinyi
Copy link
Author

I replace tr and sed with the gnu version from brew and it works. Thanks!

@wulfgarpro
Copy link
Owner

See #24.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants