젯브레인 IDE들은 터미널에서 IDE를 실행할 수 있는 쉘 스크립트를 제공합니다

IDE 또는 jetbrains toolbox를 이용해 추가할 수 있는데요, 툴박스를 이용하는 편이 편리합니다

 

Settings - Tools - "Genearte shell scripts"를 체크하면 /usr/local/bin에 스크립트가 생성됩니다

IDE마다 쉘스크립트 이름은 idea, webstorm, ... 등등이고 바꾸고 싶다면 역시 툴박스에서 바꿀 수도 있습니다.

그런데 최근에 맥을 바꾸고 나니 쉘스크립트 생성이 안되더라고요. 뭔가 툴박스에서 오류메시지가 뜬다거나 하는 것도 아니고.. 묵묵부답

 

 

JetBrains Toolbox does not generate shell scripts : TBX-4495

Hi, what it says in the title. OS: Ubuntu 18.04 LTS (Elementary OS) Toolbox install location: ~/.local/share/JetBrains/Toolbox Steps to reproduce: 1. Gear icon for main toolbox app -ᐳ "Generate shell scripts" [turn on] -ᐳ "Shell scripts location" [type

youtrack.jetbrains.com

Hello everyone.
We apologise for the inconvenience. Since this issue has already been closed, I suggest you create a new one or follow the linked issue.
For a quick fix, please make sure that:
  1. That $PATH is not empty. (/usr/local/bin)
  2. The local user has permission to write into /usr/local/bin
We plan to improve the shell scripting in future releases. Please stay tuned.

이슈도 몇개 올라왔었는데, 일단 빠르게 고치려면

  1. /usr/local/bin 디렉토리가 혹시 지워지진 않았는지 확인
  2. 로컬 유저가 그 디렉토리에 쓰기 권한이 있는지 확인

해보라고 합니다.

 

맥의 경우, /usr/local/bin은 소유자가 "root" "wheel"로 설정되어 있어서, 로컬 유저 쓰기 권한이 기본적으로 없습니다.

해당 폴더 ACL을 설정해봅시다.

 

open /usr/local 로 파인더에서 폴더 열기 -> 우클릭 후 Get Info

 

여기서 맨 밑에 보면 설정하는 칸이 있습니다.

자물쇠 눌러서 열어주시고

 

내 계정을 Read & Write로 추가해줍니다

 

그 다음 jetbrains-toolbox를 지웠다 다시 깔면 스크립트가 생성됩니다

아마 쉘 스크립트 생성 옵션을 껐다 키면 그때도 생길거 같긴 한데 해보질 않아서.. 그냥 brew로 지웠다 깔았습니다

 

터미널에서 acl을 확인해보면 이렇게 나옵니다.

sudo chmod +a '유저명 allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity' /usr/local/bin

터미널에서 ACL 설정하려면 맥의 경우 위처럼 chmod +a로 해줘야 합니다.

반응형