TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Paulo Eduardo
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 1
    • Controversial 0
    • Groups 0

    Posts made by Paulo Eduardo

    • RE: How to run `code .` and `yarn start` on macOS?

      So, I got it haha

      #/bin/bash
      newtab(){
        osascript \
        -e 'tell application "iTerm2" to tell current window to set newWindow to (create tab with default profile)' \
        -e "tell application \"iTerm2\" to tell current session of newWindow to write text \"${@}\""
      }
      newtab 'cd ~/dev/clubpetro-frontend && code . && yarn run start'
      

      This is the .sh file that I create, all I do is call bash ~/dev/alexa/teste.sh on trigger 🙂 working perfectly

      posted in General Discussion
      Paulo EduardoP
      Paulo Eduardo
    • How to run `code .` and `yarn start` on macOS?

      I tried using .sh file

      I was able to use commands like open . before some cd but I wasn't able to run complex commands like code to open vs on that folder(this one i can solve using open -a code filePath. but start my project prove to be harder.

      Outside trigger, the sh file work. Just on trigger I wasn't able to run it 😞

      posted in General Discussion
      Paulo EduardoP
      Paulo Eduardo