Timeline for new tmux pane not sourcing zshrc file
Current License: CC BY-SA 4.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 23 at 23:01 | answer | added | Asapgiri | timeline score: 0 | |
| Jul 24, 2022 at 7:38 | comment | added | Eyal Solomon | hi @thrig any suggestions ? | |
| Jul 20, 2022 at 14:22 | comment | added | Eyal Solomon | tried adding print before and after - both succeeded. no clue why starship isn't working well.. when I run eval "$(starship init zsh)" in the new pane manually it works like expected | |
| Jul 20, 2022 at 13:37 | comment | added | thrig | Is that code being reached (add more print statements or trace the shell)? If so, there might be something in your environment that is making starship unhappy? | |
| Jul 20, 2022 at 6:58 | comment | added | Eyal Solomon | for some reason this line eval $(starship init zsh) which is responsible for the custom theme isn't running on new tmux pane | |
| Jul 20, 2022 at 6:56 | comment | added | Eyal Solomon | That's so weird. added print foo in the ~ /.zshrc file. And now I do see foo printed on any new tmux pane but it still doesn't load custom terminal. Tried removing ZSH_TMUX_AUTOSTART=true - same.. | |
| Jul 19, 2022 at 15:20 | comment | added | thrig | tmux source-file ~/.tmux.conf should be less brutal than kill-server. Can you add a print foo at the top ~/.zshrc for diagnostics? In theory it should be being read by zsh. (Maybe oh-my-zsh or whatever ZSH_TMUX_AUTOSTART=true does complicates matters?) | |
| Jul 19, 2022 at 14:08 | comment | added | Eyal Solomon | tmux kill-server and set -g default-command "/bin/zsh -l" | |
| Jul 19, 2022 at 13:51 | comment | added | thrig | How did you restart tmux and what exactly did you put into tmux.conf? | |
| Jul 18, 2022 at 13:34 | comment | added | Eyal Solomon | Hi do you mean inside the tmux config file right ? tired and still same result | |
| Jul 18, 2022 at 13:19 | comment | added | thrig | I suspect this is a login-shell (or not) distinction. What happens if you set the default-command to "/bin/zsh -l" and then reload or restart tmux? | |
| S Jul 18, 2022 at 7:13 | review | First questions | |||
| Jul 29, 2022 at 13:25 | |||||
| S Jul 18, 2022 at 7:13 | history | asked | Eyal Solomon | CC BY-SA 4.0 |