Created
March 5, 2016 22:42
-
-
Save lmas/086be86b3b08eaf48578 to your computer and use it in GitHub Desktop.
Start multiple terminal/bash session in the same path.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"os" | |
"os/exec" | |
) | |
// Start a new terminal/bash session in specified path. | |
func session(path string) { | |
os.Chdir(path) | |
cmd := exec.Command("rxvt") | |
cmd.Start() | |
} | |
func main() { | |
session("/var/log") | |
session("/home") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment