update killZoteroUnix command to ignore grep pipe (#89)
This commit is contained in:
		
							parent
							
								
									3d9f8a8a0d
								
							
						
					
					
						commit
						6f3a6d112e
					
				@ -43,6 +43,7 @@ This is a plugin template for [Zotero](https://www.zotero.org/).
 | 
			
		||||
[](https://github.com/MuiseDestiny/zotero-figure)
 | 
			
		||||
[](https://github.com/l0o0/jasminum)
 | 
			
		||||
[](https://github.com/lifan0127/ai-research-assistant)
 | 
			
		||||
[](https://github.com/daeh/zotero-markdb-connect)
 | 
			
		||||
 | 
			
		||||
If you are using this repo, I recommended that you put the following badge on your README:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
{
 | 
			
		||||
  "usage": "Copy and rename this file to zotero-cmd.json. Edit the cmd.",
 | 
			
		||||
  "killZoteroWindows": "taskkill /f /im zotero.exe",
 | 
			
		||||
  "killZoteroUnix": "kill -9 $(ps -x | grep zotero)",
 | 
			
		||||
  "killZoteroUnix": "kill -9 $(ps -x | grep '[z]otero' | awk '{print $1}')",
 | 
			
		||||
  "exec": {
 | 
			
		||||
    "@comment-zoteroBinPath": "Please input the path of the Zotero binary file in `zoteroBinPath`.",
 | 
			
		||||
    "@comment-zoteroBinPath-tip": "The path delimiter should be escaped as `\\` for win32. The path is `*/Zotero.app/Contents/MacOS/zotero` for MacOS.",
 | 
			
		||||
 | 
			
		||||
@ -180,7 +180,7 @@ function onDialogEvents(type: string) {
 | 
			
		||||
 | 
			
		||||
// Add your hooks here. For element click, etc.
 | 
			
		||||
// Keep in mind hooks only do dispatch. Don't add code that does real jobs in hooks.
 | 
			
		||||
// Otherwise the code would be hard to read and maintian.
 | 
			
		||||
// Otherwise the code would be hard to read and maintain.
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  onStartup,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user