News for hackers. Stuff that matters.
Re:Ask HN: App for quickly opening all files and windows nec... by seanwilson on Monday November 11, 2019 @05:50AM (#21503721)
I write simple bash scripts for this that I put in my path e.g. if you type "project123" in the terminal, it will open the project in VS Code, open the git repo is SourceTree, open the API docs in Chrome, start the local server etc. Usually I make it close all those programs first as well so it's a clean slate.

Pretty simple and really flexible.

Re:Ask HN: App for quickly opening all files and windows nec... by AndreFvchs on Tuesday November 12, 2019 @02:59PM (#21517521)
Sounds awesome! Can you please share the bash script?
Re:Ask HN: App for quickly opening all files and windows nec... by seanwilson on Wednesday November 13, 2019 @09:23AM (#21524369)
Put a function in your bash profile script along the lines of this, where you open up everything you need for a project to going:

    function project123() {
      path=~/Documents/project123
      cd $path
   
      code $path # open IDE
      stree $path # open SourceTree

      chrome "localhost:8080"&
      gulp # Start local server
    }
Then just type "project123" in bash to run it. Create a new one for each project.