Skip to content

Open the iTerm tabs you'll need for development

License

Notifications You must be signed in to change notification settings

Kidfund/KidTabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Alfred-iTerm-Tabs

Open the iTerm tabs you'll need for development

image

Trigger

kidtabs in Alfred

Download here

Tabs

  1. iOS project
  2. Laravel project. Usually where I run artisan commands
  3. Laravel project; Tails most recent file in the log directory. I also jump around from here. Usually CDing to the realm directory to pop it into Realm Browser
  4. React project
  5. Ansible project

Script

If you choose to run this directly from iTerm, this is the underlying script. Crude but does the job

tell application "iTerm2"
  tell current session of current window
    write text "cd ~/workspace/kidfund/ios/Kidfund"
  end tell
  tell current window
    create tab with default profile
      tell current session of current tab
        write text "cd ~/workspace/kidfund/web"
      end tell
  end tell
    tell current window
    create tab with default profile
      tell current session of current tab
        write text "cd ~/workspace/kidfund/web && tail -f storage/logs/\"$(ls -at storage/logs | head -n 1)\""
      end tell
  end tell
    tell current window
    create tab with default profile
      tell current session of current tab
        write text "cd ~/workspace/kidfund/web-react"
      end tell
  end tell
  tell current window
    create tab with default profile
      tell current session of current tab
        write text "cd ~/workspace/kidfund/automation/ansible"
      end tell
  end tell
end tell

About

Open the iTerm tabs you'll need for development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published