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

run smug not working in secureCRT #120

Open
newyorkthink opened this issue Sep 5, 2023 · 6 comments
Open

run smug not working in secureCRT #120

newyorkthink opened this issue Sep 5, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@newyorkthink
Copy link

image

its not working
image

i use this yaML in alacritty is working

and i run tmux command is working, smug is cannot

@newyorkthink newyorkthink added the bug Something isn't working label Sep 5, 2023
@ivaaaan
Copy link
Owner

ivaaaan commented Sep 5, 2023

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
Copy link
Author

smug start default -a

image

i test , but it not work

@ivaaaan
Copy link
Owner

ivaaaan commented Sep 5, 2023

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
Copy link
Author

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
Copy link
Owner

ivaaaan commented Sep 5, 2023

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

@newyorkthink
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants