added startup script for default tmux session
This commit is contained in:
@@ -37,6 +37,7 @@ export TERM="xterm-256color"
|
|||||||
|
|
||||||
# extend PATH variable
|
# extend PATH variable
|
||||||
# export PATH=$PATH:~/path/to/add
|
# export PATH=$PATH:~/path/to/add
|
||||||
|
export PATH="${PATH}:~/dotfiles/misc/scripts/"
|
||||||
|
|
||||||
# setup starship
|
# setup starship
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
|
|||||||
14
misc/scripts/dmux
Executable file
14
misc/scripts/dmux
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
SESSION='quak'
|
||||||
|
# dont forget the '-d' option, otherwise the rest of
|
||||||
|
# the commands will get executed after the session is closed
|
||||||
|
tmux new-session -d -s "$SESSION" -n "temp"
|
||||||
|
tmux new-window -t "$SESSION" -n "dotfiles"
|
||||||
|
tmux send-keys -t "$SESSION" "cd ~/dotfiles" C-m "clear" C-m
|
||||||
|
tmux new-window -t "$SESSION" -n "collection"
|
||||||
|
tmux send-keys -t "$SESSION" "cd ~/collection" C-m "clear" C-m
|
||||||
|
tmux new-window -t "$SESSION" -n "stuff"
|
||||||
|
tmux send-keys -t "$SESSION" "cd ~" C-m "clear" C-m
|
||||||
|
tmux kill-window -t "temp"
|
||||||
|
tmux attach -t "$SESSION"
|
||||||
@@ -42,4 +42,5 @@ set-option -g renumber-windows on
|
|||||||
# status bar
|
# status bar
|
||||||
set -g status-interval 5
|
set -g status-interval 5
|
||||||
|
|
||||||
|
# source custom theme
|
||||||
source ~/dotfiles/tmux/.config/tmux/zegonix.conf
|
source ~/dotfiles/tmux/.config/tmux/zegonix.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user