start new:
tmux
start new with session name:
tmux new -s myname
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
| {:user {:dependencies [[org.clojure/tools.namespace "0.2.3"] | |
| [spyscope "0.1.3"] | |
| [criterium "0.4.1"]] | |
| :injections [(require '(clojure.tools.namespace repl find)) | |
| ; try/catch to workaround an issue where `lein repl` outside a project dir | |
| ; will not load reader literal definitions correctly: | |
| (try (require 'spyscope.core) | |
| (catch RuntimeException e))] | |
| :plugins [[lein-pprint "1.1.1"] | |
| [lein-beanstalk "0.2.6"] |
| import scala.xml._ | |
| val scalaVersion = args.headOption | |
| def quote(s: String) = "\"" + s + "\"" | |
| val xml = XML.loadString(scala.io.Source.stdin.getLines.mkString("\n")) | |
| val name = (xml \ "artifactId").text |
| #!/bin/sh | |
| SESSION_NAME="big_red" | |
| cd ~/Sites/within3/big_red | |
| tmux has-session -t ${SESSION_NAME} | |
| if [ $? != 0 ] | |
| then |