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

Start panes without sourcing ~/.zshrc #90

Closed
segeljakt opened this issue Jun 24, 2018 · 6 comments
Closed

Start panes without sourcing ~/.zshrc #90

segeljakt opened this issue Jun 24, 2018 · 6 comments

Comments

@segeljakt
Copy link

segeljakt commented Jun 24, 2018

I think it would be nice if there was an option to launch each xpane without sourcing the ~/.zshrc or ~/.bashrc as it would improve the startup time. I'm not sure how to do it with tmux, but zsh -f will launch zsh without loading the ~/.zshrc.

@segeljakt segeljakt changed the title Start panes without loading ~/.zshrc Start panes without sourcing ~/.zshrc Jun 24, 2018
@greymd
Copy link
Owner

greymd commented Jun 24, 2018

In my understanding, whether the tmux loads the "rcfile" like ~/.bashrc or not is depending on the user's configures. tmux and xpanes would work without sourcing ~/.zshrc if set-option -g default-command "zsh -f" is stated in the ~/.tmux.conf.

By the way, another user also hopes that xpanes executes the command without shell-dependent settings (issue #89) and I am working on it. It may be what you want.

@segeljakt
Copy link
Author

Ok, it sounds interesting!

@greymd
Copy link
Owner

greymd commented Aug 2, 2018

Now v3.1.0 got the new option -s to open panes without sourcing ~/.zshrc file. Please try it!

If it does not satisfies you, plz re-open it.

@greymd greymd closed this as completed Aug 2, 2018
@greymd
Copy link
Owner

greymd commented Aug 2, 2018

cool, isn't it?
movie

@segeljakt
Copy link
Author

It looks awesome! I'll try it asap when homebrew-core merges the PR

@segeljakt
Copy link
Author

I just tried it, works really well, nicely done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants