English 中文(简体)
What happens between sourcing ~/.zsh/env and sourcing ~/.zshrc?
原标题:
  • 时间:2010-11-19 22:45:36
  •  标签:
  • zsh
  • tmux

I m switching from gnu screen to tmux, and I m observing a weird behaviour where my shell hangs when I create a new window in tmux. I can kill the hang and get to my shell if I hit CTRL-C, but I want to find out what s going wrong.

I ve done some echo debugging of my zsh configuration and figured out that the hang happens after ~/.zsh/env is sourced (it doesn t hang w/in ~/.zsh/env, I ve checked that), but before ~/.zshrc is sourced. I m willing to dig further, but I m not sure what happens between those two steps. Can anyone tell me, so I know where to look?

最佳回答

Ah-ha, it s /etc/zprofile that s causing the issue. I found out from man zsh the order of the sourced files. Thanks!

问题回答

暂无回答




相关问题
zsh alias -> function?

Suppose I have: alias gg="git grep" then stuff like: gg "int x" works, but gg int x gets complaints. Is there a way to rewrite gg as a function in zsh so that it takes all the arguments after ...

zsh handling of arguments

In the zsh programming language, how do I get the entire list of arguments as a string in "" ? i.e. in myzshcommand 1 2 3 foo bar I want something to match me "1 2 3 foo bar" Thanks!

Tell if a user has SUed in a shell script?

I have a script which executes a git-pull when I log in. The problem is, if I su to a different user and preserve my environment with an su -lp, the script gets run again and usually gets messed up ...

How do I require a minimum version of zsh?

I want to use a feature only present in newer versions of zsh: [[ "$foo" =~ "regexp" ]] where regexp is a regular expression. Is it possible to do this check? Something like: if [[ $ZSH_VERSION &...

Rename files based on sorted creation date?

I have a directory filled with files with random names. I d like to be able to rename them file 1 file 2 etc based on chronological order, ie file creation date. I could be writing a short Python ...

ZSH Prompt/RPrompt Conflict

I currently have my ZSH PROMPT variable set up as: PROMPT=$ [%{e[0;32m%}%n@%m:%~%{e[0m%}]> and my RPROMPT variable as: RPROMPT=$ [%{e[0;32m%}%Te[0m%}] The effect I m working for is to make ...

热门标签