Open newyorkthink opened 1 year ago
Hi. When running smug within another tmux session you need to add -a
flag to attach to it, e.g smug start default -a
smug start default -a
i test , but it not work
Can you please attach logs?
Output of cat ~/.config/smug/smug.log
You should run smug with -d
flag to output debug information, e.g smug start default -a -d
Can you please attach logs?
Output of
cat ~/.config/smug/smug.log
You should run smug with-d
flag to output debug information, e.gsmug start default -a -d
❯ smug start default -a -d
Starting a new session...
❯ cat ~/.config/smug/smug.log
tmux has-session -t default:
exit status 1 can't find session: default
tmux new -Pd -s default -n smug_def -c /home/thinker
tmux setenv -t default FOO BAR
tmux setenv -t default SMUG_SESSION default
tmux setenv -t default SMUG_SESSION_CONFIG_PATH /home/thinker/.config/smug/default.yml
tmux neww -Pd -t default: -c /home/thinker -F #{window_id} -n zsh
tmux send-keys -t @10 clear Enter
tmux select-layout -t @10 main-vertical
tmux neww -Pd -t default: -c /home/thinker -F #{window_id} -n zsh_2
tmux send-keys -t @11 clear Enter
tmux split-window -Pd -h -t @11 -c /home/thinker -F #{pane_id}
tmux select-layout -t @11 tiled
tmux send-keys -t @11.%18 clear Enter
tmux select-layout -t @11 tiled
tmux kill-window -t default:smug_def
tmux move-window -r -s default: -t default:
tmux switch-client -t default:zsh
Can you also paste output of tmux ls
and the full smug config you are using?
Can you also paste output of
tmux ls
and the full smug config you are using?
session: "alacritty"
env:
FOO: BAR
root: "$HOME"
before_start:
# - cat /dev/null > .zsh_history
stop: []
windows:
- name: zsh
# manual: true
layout: main-vertical
root: "$HOME"
before_start: []
commands:
- tmux set -g mouse
- clear
- name: zsh_2
layout: tiled
root: "$HOME"
before_start: []
commands:
- clear
panes:
- type: horizontal
commands:
- clear
- name: lf
root: "$HOME"
commands:
- lf
- name: nvim
root: "$HOME"
commands:
- nvim
- name: workspace
root: "$HOME"
layout: tiled
commands:
- clear
panes:
- type: horizontal
commands:
- clear
- type: horizontal
commands:
- clear
- name: server
root: "$HOME"
layout: tiled
commands:
- clear
panes:
- type: horizontal
commands:
- clear
# - clash_run.sh
- type: horizontal
commands:
- clear
- name: btop
root: "$HOME"
commands:
- btop
- name: clipboard
root: "$HOME"
commands:
- cb hs
its not working
i use this yaML in alacritty is working
and i run tmux command is working, smug is cannot