ivaaaan / smug

Session manager and task runner for tmux. Start your development environment within one command.
MIT License
712 stars 29 forks source link

run smug not working in secureCRT #120

Open newyorkthink opened 1 year ago

newyorkthink commented 1 year ago

image

its not working image

i use this yaML in alacritty is working

and i run tmux command is working, smug is cannot

ivaaaan commented 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

newyorkthink commented 1 year ago

smug start default -a

image

i test , but it not work

ivaaaan commented 1 year ago

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

newyorkthink commented 1 year ago

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


❯ 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

image

ivaaaan commented 1 year ago

Can you also paste output of tmux ls and the full smug config you are using?

newyorkthink commented 1 year ago

Can you also paste output of tmux ls and the full smug config you are using?

image

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