Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3th pane opens new pane with the running processes #8

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions bin/core
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@ session="core"

# Create new session, and extra windows (open editor)
tmux new-session -d -s $session -n Window\ 1
tmux send-keys 'nvim .' C-m
tmux send-keys 'nvim .' 'C-m'
tmux rename-window 'Vim based editor'

# A second whole window! (working directory)
tmux new-window -t $session:2 -n Window\ 2
tmux send-keys 'ls -la' C-m
tmux send-keys 'ls -la' 'C-m'

# A third whole window! (git)
# A third whole window!
tmux new-window -t $session:3 -n Window\ 3
tmux send-keys 'git log --oneline 2> /dev/null || top' C-m
tmux send-keys 'git log --oneline 2> /dev/null || top' 'C-m'
tmux split-window -h "watch 'ps aux | sort -nrk 3,3 | head -n 5'" 'C-m'

# Select the first windows
tmux select-window -t $session:1

# Make it so. This must be the very last command.
# Attach the tmux session
tmux attach-session -t $session