Commits

Shlomi Fish  committed 9efce85

Add a theme for binarypuzzle.

  • Participants
  • Parent commits 52495c5

Comments (0)

Files changed (2)

File shlomif-settings/Bash/Themes/common/git.bash

+setup()
+{
+    (
+        mkdir -p "$git_base"
+        cd "$git_base"
+        hg clone "$remote_repo" "$trunk"
+    )
+    cd "$this"
+}

File shlomif-settings/Bash/Themes/themes/games/binarypuzzle/source.bash

+load_common mymake
+load_common completion
+load_common prompt
+load_common git
+
+kakuro="$HOME/progs/games/binarypuzzle.com"
+git_base="$kakuro"
+trunk="$kakuro/garden"
+solver="$trunk/ruby"
+this="$solver"
+remote_repo='git@github.com:shlomif/binary-puzzle-garden.git'
+
+cd "$this"
+
+e()
+{
+    (
+        cd "$this" && \
+        gvim -p t/parse-board.rb kakuro-board.rb
+    )
+}
+
+prompt()
+{
+    __prompt_cmd \
+        "\$solver=$solver" \
+        "\$trunk=$trunk" \
+        "\$base=$kakuro" \
+        "~=$HOME"
+}
+
+PS1="\\u@\\h[binarypuzzle]:\$(prompt)\\$ "
+