1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Added a script for tmux windows

This commit is contained in:
2015-07-01 12:34:19 -04:00
parent c406f85a22
commit bad21729bf
2 changed files with 11 additions and 5 deletions

View File

@@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150630180257) do ActiveRecord::Schema.define(version: 20150630170119) do
create_table "matches", force: :cascade do |t| create_table "matches", force: :cascade do |t|
t.integer "w1" t.integer "w1"
@@ -37,7 +37,7 @@ ActiveRecord::Schema.define(version: 20150630180257) do
add_index "matches", ["mat_id"], name: "index_matches_on_mat_id" add_index "matches", ["mat_id"], name: "index_matches_on_mat_id"
add_index "matches", ["tournament_id"], name: "index_matches_on_tournament_id" add_index "matches", ["tournament_id"], name: "index_matches_on_tournament_id"
add_index "matches", ["w1", "w2"], name: "index_matches_on_w1_and_w2", unique: true add_index "matches", ["w1", "w2"], name: "index_matches_on_w1_and_w2"
create_table "mats", force: :cascade do |t| create_table "mats", force: :cascade do |t|
t.string "name" t.string "name"
@@ -68,8 +68,6 @@ ActiveRecord::Schema.define(version: 20150630180257) do
t.text "weigh_in_ref" t.text "weigh_in_ref"
end end
add_index "tournaments", ["weigh_in_ref"], name: "index_tournaments_on_weigh_in_ref"
create_table "users", force: :cascade do |t| create_table "users", force: :cascade do |t|
t.string "email", default: "", null: false t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false t.string "encrypted_password", default: "", null: false
@@ -112,7 +110,6 @@ ActiveRecord::Schema.define(version: 20150630180257) do
t.decimal "offical_weight" t.decimal "offical_weight"
end end
add_index "wrestlers", ["offical_weight"], name: "index_wrestlers_on_offical_weight"
add_index "wrestlers", ["weight_id"], name: "index_wrestlers_on_weight_id" add_index "wrestlers", ["weight_id"], name: "index_wrestlers_on_weight_id"
end end

9
tmux.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
CURRENT_SESSION=${PWD##*/}
tmux new-session -d -s $CURRENT_SESSION
tmux send-keys 'vim' 'C-m'
tmux rename-window vim
tmux new-window
tmux rename-window server
tmux select-window -t 0
tmux attach -t $CURRENT_SESSION