aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris2016-07-08 20:11:18 +0200
committerJoris2016-07-08 20:11:18 +0200
commitb54d8e45fc8784d8fa6eaa03f58536b7a19cf70b (patch)
tree94a3b54fc5b03e08067e2ee1c430ccdaffeaf56e
parent52f9fafc65d81fc8f684dee21f895e85a14c8165 (diff)
downloadbudget-b54d8e45fc8784d8fa6eaa03f58536b7a19cf70b.tar.gz
budget-b54d8e45fc8784d8fa6eaa03f58536b7a19cf70b.tar.bz2
budget-b54d8e45fc8784d8fa6eaa03f58536b7a19cf70b.zip
Use tmuxinator in nix shell hook
-rw-r--r--.tmuxinator.yml8
-rw-r--r--README.md1
-rw-r--r--shell.nix17
3 files changed, 12 insertions, 14 deletions
diff --git a/.tmuxinator.yml b/.tmuxinator.yml
new file mode 100644
index 0000000..34b8cc4
--- /dev/null
+++ b/.tmuxinator.yml
@@ -0,0 +1,8 @@
+name: sharedCost
+
+windows:
+ - main:
+ layout: fff4,119x58,0,0{94x58,0,0,0,24x58,95,0,1}
+ panes:
+ - # Empty
+ - make install && make build && make watch
diff --git a/README.md b/README.md
index 5adcea6..b53a891 100644
--- a/README.md
+++ b/README.md
@@ -33,3 +33,4 @@ insert into user(creation, email, name) values (datetime('now'), 'lisa@mail.com'
- Income CRUD
- Server error message
- Dates after today must be forbidden
+- Weekly notifications about added, modified, deleted payments and incomes
diff --git a/shell.nix b/shell.nix
index bb656a8..c952e15 100644
--- a/shell.nix
+++ b/shell.nix
@@ -8,23 +8,12 @@ with import <nixpkgs> {}; {
nodejs
sqlite
tmux
+ tmuxinator
];
shellHook = ''
- tmux kill-session -t sharedCost >/dev/null
-
- urxvt -e zsh -c "tmux new-session -s sharedCost" & sleep 0.5
- tmux send-keys -t sharedCost '"$EDITOR" README.md' 'C-m'
-
- tmux split-window -h -t sharedCost
- tmux send-keys -t sharedCost 'make install && make build && make watch' 'C-m'
-
- tmux select-pane -t sharedCost -L
- tmux resize-pane -t sharedCost -R 25
-
+ tmux kill-session -t sharedCost >/dev/null 2>&1
firefox http://localhost:3000/
-
- sleep 0.5
- kill -9 $PPID
+ tmuxinator local
'';
};
}