-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.tmux
executable file
·47 lines (31 loc) · 1.24 KB
/
.tmux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/bash
set -e
SESSION_NAME="System Configurations"
tmuxAttachCommand=""
if [ "$TMUX" != "" ]; then
tmuxAttachCommand="tmux switch-client -t \"$SESSION_NAME:Dotfiles\""
else
tmuxAttachCommand="tmux attach -t \"$SESSION_NAME:Dotfiles\""
fi
if tmux has-session -t "$SESSION_NAME" 2> /dev/null; then
eval "$tmuxAttachCommand"
fi
tmux new-session -d -s "$SESSION_NAME"
tmux rename-window -t "$SESSION_NAME" "Dotfiles"
tmux send-keys -t "$SESSION_NAME" "cd ./aspects/dotfiles/files/; clear" Enter
tmux new-window -t "$SESSION_NAME"
tmux rename-window -t "$SESSION_NAME" "NeoVim"
tmux send-keys -t "$SESSION_NAME" "cd ./aspects/nvim/files/.config/nvim/; clear" Enter
tmux new-window -t "$SESSION_NAME"
tmux rename-window -t "$SESSION_NAME" "Email"
tmux send-keys -t "$SESSION_NAME" "cd ./aspects/email/files/.config; clear" Enter
tmux new-window -t "$SESSION_NAME"
tmux rename-window -t "$SESSION_NAME" "Man"
tmux send-keys -t "$SESSION_NAME" "cd ./man; clear" Enter
tmux new-window -t "$SESSION_NAME"
tmux rename-window -t "$SESSION_NAME" "Git"
tmux send-keys -t "$SESSION_NAME" "clear; wgs" Enter
tmux split-window -v
tmux send-keys -t "$SESSION_NAME" "clear" Enter
tmux send-keys -t "$SESSION_NAME" "g aa; g ce; g p; c"
eval "$tmuxAttachCommand"