I was wondering if anyone would be willing to review my /.zshrc file,
I used to have a setup following: Dr. Bunsen / The Text Triumvirate
(I am still on a MacBook Pro running Mojave, I love Aperture)
One day ago my steps were to install google-cloud-sdk and then uninstall, the use of terminal/iterm was failing with the error message ’too many open files’. And post uninstall it is still failing,
Last login: Thu Sep 7 15:32:30 on ttys000
/Users/moses/.zprezto/runcoms/zshrc:source:1: too many open files: /Users/moses/.zprezto/runcoms/zshrc
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/0000_before.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/0_path.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/aliases.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/colors.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/custom_prompt_path.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/fasd.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/git.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/key-bindings.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/last-command.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/noglob.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/rm.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/secrets.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/theme.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/vi-mode.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/zmv.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/zsh-aliases.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/zzzz_after.zsh
/usr/local/Cellar/pyenv/2.3.23/libexec/pyenv-init: line 215: echo: write error: Bad file descriptor
/usr/local/Cellar/pyenv/2.3.23/libexec/pyenv-init: line 215: echo: write error: Bad file descriptor
cat: stdin: Bad file descriptor
/Users/moses/.zprezto/runcoms/zshrc:source:18: too many open files: /usr/local/Cellar/jenv/0.5.6/libexec/libexec/../completions/jenv.zsh
/Users/moses/.zprezto/runcoms/zshrc:source:21: too many open files: /Users/moses/.jenv/plugins/export/etc/jenv.d/init/export_jenv_hook.zsh
jenv:1: too many open files: /dev/null
/usr/local/Cellar/jenv/0.5.6/libexec/libexec/jenv-init: line 99: echo: write error: Bad file descriptor
/Users/moses/.yadr/zsh/0_path.zsh:11: write error: bad file descriptor
awk: i/o error occurred on /dev/stdin
source line number 1
awk: i/o error occurred while closing /dev/stdin
source line number 1
awk: i/o error occurred while closing /dev/stdout
source line number 1
pathAppend:2: write error: bad file descriptor
pathAppend:2: command not found: egrep
pathAppend:2: write error: bad file descriptor
pathAppend:2: command not found: egrep
/Users/moses/.yadr/zsh/aliases.zsh:8: command not found: uname
/Users/moses/.yadr/zsh/aliases.zsh:56: 1: too many open files
/Users/moses/.yadr/zsh/fasd.zsh:4: write error: bad file descriptor
/Users/moses/.yadr/zsh/fasd.zsh:source:7: too many open files: /Users/moses/.fasd-init-bash
/Users/moses/.yadr/zsh/zzzz_after.zsh:3: command not found: ls
/Users/moses/.zprezto/runcoms/zshrc:9: command not found: pyenv
/Users/moses/.zprezto/runcoms/zshrc:10: command not found: pyenv
/Users/moses/.zprezto/runcoms/zshrc:11: command not found: pyenv
jenv:1: cannot duplicate fd 1: too many open files
moses@MosesMoses ~
I can do no actions on the command line,
I checked the below .zshrc and found duplicates which I removed leaving the below. And still get the above,
I checked the points of bad file descriptor and could not interpret the existence of errors,
I checked .zshrc with Bard and it advised consulting a forum,
I was wondering if anyone would be willing to review my /.zshrc file,
I used to have a setup following: Dr. Bunsen / The Text Triumvirate
(I am still on a MacBook Pro running Mojave, I love Aperture)
One day ago my steps were to install google-cloud-sdk and then uninstall, the use of terminal/iterm was failing with the error message ’too many open files’. And post uninstall it is still failing,
Last login: Thu Sep 7 15:32:30 on ttys000 /Users/moses/.zprezto/runcoms/zshrc:source:1: too many open files: /Users/moses/.zprezto/runcoms/zshrc /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/0000_before.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/0_path.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/aliases.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/colors.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/custom_prompt_path.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/fasd.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/git.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/key-bindings.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/last-command.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/noglob.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/rm.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/secrets.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/theme.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/vi-mode.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/zmv.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/zsh-aliases.zsh /Users/moses/.zprezto/runcoms/zshrc:source:3: too many open files: /Users/moses/.yadr/zsh/zzzz_after.zsh /usr/local/Cellar/pyenv/2.3.23/libexec/pyenv-init: line 215: echo: write error: Bad file descriptor /usr/local/Cellar/pyenv/2.3.23/libexec/pyenv-init: line 215: echo: write error: Bad file descriptor cat: stdin: Bad file descriptor /Users/moses/.zprezto/runcoms/zshrc:source:18: too many open files: /usr/local/Cellar/jenv/0.5.6/libexec/libexec/../completions/jenv.zsh /Users/moses/.zprezto/runcoms/zshrc:source:21: too many open files: /Users/moses/.jenv/plugins/export/etc/jenv.d/init/export_jenv_hook.zsh jenv:1: too many open files: /dev/null /usr/local/Cellar/jenv/0.5.6/libexec/libexec/jenv-init: line 99: echo: write error: Bad file descriptor /Users/moses/.yadr/zsh/0_path.zsh:11: write error: bad file descriptor awk: i/o error occurred on /dev/stdin source line number 1 awk: i/o error occurred while closing /dev/stdin source line number 1 awk: i/o error occurred while closing /dev/stdout source line number 1 pathAppend:2: write error: bad file descriptor pathAppend:2: command not found: egrep pathAppend:2: write error: bad file descriptor pathAppend:2: command not found: egrep /Users/moses/.yadr/zsh/aliases.zsh:8: command not found: uname /Users/moses/.yadr/zsh/aliases.zsh:56: 1: too many open files /Users/moses/.yadr/zsh/fasd.zsh:4: write error: bad file descriptor /Users/moses/.yadr/zsh/fasd.zsh:source:7: too many open files: /Users/moses/.fasd-init-bash /Users/moses/.yadr/zsh/zzzz_after.zsh:3: command not found: ls /Users/moses/.zprezto/runcoms/zshrc:9: command not found: pyenv /Users/moses/.zprezto/runcoms/zshrc:10: command not found: pyenv /Users/moses/.zprezto/runcoms/zshrc:11: command not found: pyenv jenv:1: cannot duplicate fd 1: too many open files
moses@MosesMoses ~
I can do no actions on the command line,
I checked the below .zshrc and found duplicates which I removed leaving the below. And still get the above,
I checked the points of bad file descriptor and could not interpret the existence of errors,
I checked .zshrc with Bard and it advised consulting a forum,
I placed set -x at the top of .zshrc and could do
$ echo $PATH
Shows 600 + duplications of: /usr/local/opt/python/libexec/bin
The .zshrc is
source $HOME/.zprezto/runcoms/zshrc
for config_file ($HOME/.yadr/zsh/*.zsh) source $config_file
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)"
eval export PATH="/Users/moses/.jenv/shims:${PATH}" export JENV_SHELL=zsh export JENV_LOADED=1 unset JAVA_HOME unset JDK_HOME source '/usr/local/Cellar/jenv/0.5.6/libexec/libexec/../completions/jenv.zsh' jenv rehash 2>/dev/null jenv refresh-plugins source "/Users/moses/.jenv/plugins/export/etc/jenv.d/init/export_jenv_hook.zsh" jenv() { type typeset &> /dev/null && typeset command command="$1" if [ "$#" -gt 0 ]; then shift fi
case "$command" in enable-plugin|rehash|shell|shell-options) eval
jenv "sh-$command" "$@"
;; *) command jenv "$command" "$@";; esac }export PATH="$HOME/.jenv/bin:$PATH" eval "$(jenv init -)"
Any guidance would be greatly appreciated,
Thanks