After installing oh-my-zsh: … /.zshrc:source:34: no such file or directory … /.oh-my-zsh/oh-my-zsh.sh












6















I just tried to install oh-my-zsh. I get the following error when I try to run rvm:



zsh: command not found: rvm


I also get the following error when I try to open a new tab:



/Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh
/Users/jack/.zshrc:source:38: no such file or directory: .bashrc


Here's my .zshrc file:



# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh

# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"

# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"

# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"

# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"

# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git bundler brew gem rvm cscairns)

source $ZSH/oh-my-zsh.sh

# Customize to your needs...

source .bashrc
export PATH=/usr/local/bin:$PATH


What do I need to do to fix these errors?










share|improve this question





























    6















    I just tried to install oh-my-zsh. I get the following error when I try to run rvm:



    zsh: command not found: rvm


    I also get the following error when I try to open a new tab:



    /Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh
    /Users/jack/.zshrc:source:38: no such file or directory: .bashrc


    Here's my .zshrc file:



    # Path to your oh-my-zsh configuration.
    ZSH=$HOME/.oh-my-zsh

    # Set name of the theme to load.
    # Look in ~/.oh-my-zsh/themes/
    # Optionally, if you set this to "random", it'll load a random theme each
    # time that oh-my-zsh is loaded.
    ZSH_THEME="robbyrussell"

    # Example aliases
    # alias zshconfig="mate ~/.zshrc"
    # alias ohmyzsh="mate ~/.oh-my-zsh"

    # Set to this to use case-sensitive completion
    # CASE_SENSITIVE="true"

    # Comment this out to disable weekly auto-update checks
    # DISABLE_AUTO_UPDATE="true"

    # Uncomment following line if you want to disable colors in ls
    # DISABLE_LS_COLORS="true"

    # Uncomment following line if you want to disable autosetting terminal title.
    # DISABLE_AUTO_TITLE="true"

    # Uncomment following line if you want red dots to be displayed while waiting for completion
    # COMPLETION_WAITING_DOTS="true"

    # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
    # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
    # Example format: plugins=(rails git textmate ruby lighthouse)
    plugins=(git bundler brew gem rvm cscairns)

    source $ZSH/oh-my-zsh.sh

    # Customize to your needs...

    source .bashrc
    export PATH=/usr/local/bin:$PATH


    What do I need to do to fix these errors?










    share|improve this question



























      6












      6








      6


      1






      I just tried to install oh-my-zsh. I get the following error when I try to run rvm:



      zsh: command not found: rvm


      I also get the following error when I try to open a new tab:



      /Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh
      /Users/jack/.zshrc:source:38: no such file or directory: .bashrc


      Here's my .zshrc file:



      # Path to your oh-my-zsh configuration.
      ZSH=$HOME/.oh-my-zsh

      # Set name of the theme to load.
      # Look in ~/.oh-my-zsh/themes/
      # Optionally, if you set this to "random", it'll load a random theme each
      # time that oh-my-zsh is loaded.
      ZSH_THEME="robbyrussell"

      # Example aliases
      # alias zshconfig="mate ~/.zshrc"
      # alias ohmyzsh="mate ~/.oh-my-zsh"

      # Set to this to use case-sensitive completion
      # CASE_SENSITIVE="true"

      # Comment this out to disable weekly auto-update checks
      # DISABLE_AUTO_UPDATE="true"

      # Uncomment following line if you want to disable colors in ls
      # DISABLE_LS_COLORS="true"

      # Uncomment following line if you want to disable autosetting terminal title.
      # DISABLE_AUTO_TITLE="true"

      # Uncomment following line if you want red dots to be displayed while waiting for completion
      # COMPLETION_WAITING_DOTS="true"

      # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
      # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
      # Example format: plugins=(rails git textmate ruby lighthouse)
      plugins=(git bundler brew gem rvm cscairns)

      source $ZSH/oh-my-zsh.sh

      # Customize to your needs...

      source .bashrc
      export PATH=/usr/local/bin:$PATH


      What do I need to do to fix these errors?










      share|improve this question
















      I just tried to install oh-my-zsh. I get the following error when I try to run rvm:



      zsh: command not found: rvm


      I also get the following error when I try to open a new tab:



      /Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh
      /Users/jack/.zshrc:source:38: no such file or directory: .bashrc


      Here's my .zshrc file:



      # Path to your oh-my-zsh configuration.
      ZSH=$HOME/.oh-my-zsh

      # Set name of the theme to load.
      # Look in ~/.oh-my-zsh/themes/
      # Optionally, if you set this to "random", it'll load a random theme each
      # time that oh-my-zsh is loaded.
      ZSH_THEME="robbyrussell"

      # Example aliases
      # alias zshconfig="mate ~/.zshrc"
      # alias ohmyzsh="mate ~/.oh-my-zsh"

      # Set to this to use case-sensitive completion
      # CASE_SENSITIVE="true"

      # Comment this out to disable weekly auto-update checks
      # DISABLE_AUTO_UPDATE="true"

      # Uncomment following line if you want to disable colors in ls
      # DISABLE_LS_COLORS="true"

      # Uncomment following line if you want to disable autosetting terminal title.
      # DISABLE_AUTO_TITLE="true"

      # Uncomment following line if you want red dots to be displayed while waiting for completion
      # COMPLETION_WAITING_DOTS="true"

      # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
      # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
      # Example format: plugins=(rails git textmate ruby lighthouse)
      plugins=(git bundler brew gem rvm cscairns)

      source $ZSH/oh-my-zsh.sh

      # Customize to your needs...

      source .bashrc
      export PATH=/usr/local/bin:$PATH


      What do I need to do to fix these errors?







      bash zsh oh-my-zsh






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 14 '14 at 8:10









      Pro Backup

      2,11863259




      2,11863259










      asked Dec 28 '11 at 22:47









      keruilinkeruilin

      131113




      131113






















          7 Answers
          7






          active

          oldest

          votes


















          6














          For this:



          /Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh



          The problem is this line:



          source $ZSH/oh-my-zsh.sh


          You don't have a file called oh-my-zsh.sh in /Users/jack/.oh-my-zsh



          For this:



          /Users/jack/.zshrc:source:38: no such file or directory: .bashrc



          The problem is the same as above; essentially, you don't have .bashrc file in /Users/jack/



          Your $ZSH is pointing to /Users/jack/.oh-my-zsh and it looks like there's no such file in that directory with the name zsh.sh



          As far as the initial problem (zsh: command not found: rvm) the issue is that the command rvm is not located anywhere in your $PATH which apparently points to /usr/local/bin plus whatever the system-wide setting is.



          I recommend you use find / -name "rvm" and see where in the file system is rvm really located and then update your $PATH variable as so: export PATH=/path/to/rv/:$PATH






          share|improve this answer































            1














            Quick fix to this issue



            /Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh


            Make the executable, executable.



            cd .oh-my-zsh/ && chmod 744 oh-my-zsh.sh


            Then run exec zsh to restart your shell. If you don't get the error, and your selected theme is working, you are good to go.






            share|improve this answer































              0














              Put the below line to your ~/.zshrc file to fix the error with rvm



              [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"





              share|improve this answer

































                0














                I had the following error:



                /Users/frankus/.zshrc:source:50: no such file or directory:  /Users/frankus/.oh-my-zsh^M/oh-my-zsh.sh


                I fixed it by renaming the oh-my-zsh folder



                mv ~/.oh-my-zsh^M ~/.oh-my-zsh





                share|improve this answer

































                  0














                  I also got this error and the error is occurring due to simple typo.



                  In your .zshrc file where you set the name of the theme don't include quotation marks.
                  So instead of doing



                  ZSH_THEME="robbyrussell"


                  you should rdo the following



                  ZSH_THEME=robbyrussell


                  This will solve your problem of getting a error when opeing a new tabs.
                  Thanks.






                  share|improve this answer































                    0














                    whenever I opened a new terminal window (iterm2) I encountered the same problem:



                    /Users/XXX/.zshrc:source:129: no such file or directory: /oh-my-zsh.sh


                    after running source .zshrc everything loaded fine though.



                    I did however have a oh-my-zsh.sh in my ~/.oh-my-zsh directory.



                    (it doesnt need to be altered with chmod +x or anything.)



                    I realised everything I was missing was the line ZSH=$HOME/.oh-my-zsh before the lines with



                    export ZSH="/Users/XXX/.oh-my-zsh"
                    and source $ZSH/oh-my-zsh.sh






                    share|improve this answer































                      0














                      Installing zsh doesn't install Oh My Zsh, which might explain if you don't have an oh-my-zsh.sh file at all (this was the case for me).



                      You can install Oh My Zsh by running



                      sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"





                      share|improve this answer























                        Your Answer








                        StackExchange.ready(function() {
                        var channelOptions = {
                        tags: "".split(" "),
                        id: "106"
                        };
                        initTagRenderer("".split(" "), "".split(" "), channelOptions);

                        StackExchange.using("externalEditor", function() {
                        // Have to fire editor after snippets, if snippets enabled
                        if (StackExchange.settings.snippets.snippetsEnabled) {
                        StackExchange.using("snippets", function() {
                        createEditor();
                        });
                        }
                        else {
                        createEditor();
                        }
                        });

                        function createEditor() {
                        StackExchange.prepareEditor({
                        heartbeatType: 'answer',
                        autoActivateHeartbeat: false,
                        convertImagesToLinks: false,
                        noModals: true,
                        showLowRepImageUploadWarning: true,
                        reputationToPostImages: null,
                        bindNavPrevention: true,
                        postfix: "",
                        imageUploader: {
                        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                        allowUrls: true
                        },
                        onDemand: true,
                        discardSelector: ".discard-answer"
                        ,immediatelyShowMarkdownHelp:true
                        });


                        }
                        });














                        draft saved

                        draft discarded


















                        StackExchange.ready(
                        function () {
                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f27851%2fafter-installing-oh-my-zsh-zshrcsource34-no-such-file-or-directory%23new-answer', 'question_page');
                        }
                        );

                        Post as a guest















                        Required, but never shown

























                        7 Answers
                        7






                        active

                        oldest

                        votes








                        7 Answers
                        7






                        active

                        oldest

                        votes









                        active

                        oldest

                        votes






                        active

                        oldest

                        votes









                        6














                        For this:



                        /Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh



                        The problem is this line:



                        source $ZSH/oh-my-zsh.sh


                        You don't have a file called oh-my-zsh.sh in /Users/jack/.oh-my-zsh



                        For this:



                        /Users/jack/.zshrc:source:38: no such file or directory: .bashrc



                        The problem is the same as above; essentially, you don't have .bashrc file in /Users/jack/



                        Your $ZSH is pointing to /Users/jack/.oh-my-zsh and it looks like there's no such file in that directory with the name zsh.sh



                        As far as the initial problem (zsh: command not found: rvm) the issue is that the command rvm is not located anywhere in your $PATH which apparently points to /usr/local/bin plus whatever the system-wide setting is.



                        I recommend you use find / -name "rvm" and see where in the file system is rvm really located and then update your $PATH variable as so: export PATH=/path/to/rv/:$PATH






                        share|improve this answer




























                          6














                          For this:



                          /Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh



                          The problem is this line:



                          source $ZSH/oh-my-zsh.sh


                          You don't have a file called oh-my-zsh.sh in /Users/jack/.oh-my-zsh



                          For this:



                          /Users/jack/.zshrc:source:38: no such file or directory: .bashrc



                          The problem is the same as above; essentially, you don't have .bashrc file in /Users/jack/



                          Your $ZSH is pointing to /Users/jack/.oh-my-zsh and it looks like there's no such file in that directory with the name zsh.sh



                          As far as the initial problem (zsh: command not found: rvm) the issue is that the command rvm is not located anywhere in your $PATH which apparently points to /usr/local/bin plus whatever the system-wide setting is.



                          I recommend you use find / -name "rvm" and see where in the file system is rvm really located and then update your $PATH variable as so: export PATH=/path/to/rv/:$PATH






                          share|improve this answer


























                            6












                            6








                            6







                            For this:



                            /Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh



                            The problem is this line:



                            source $ZSH/oh-my-zsh.sh


                            You don't have a file called oh-my-zsh.sh in /Users/jack/.oh-my-zsh



                            For this:



                            /Users/jack/.zshrc:source:38: no such file or directory: .bashrc



                            The problem is the same as above; essentially, you don't have .bashrc file in /Users/jack/



                            Your $ZSH is pointing to /Users/jack/.oh-my-zsh and it looks like there's no such file in that directory with the name zsh.sh



                            As far as the initial problem (zsh: command not found: rvm) the issue is that the command rvm is not located anywhere in your $PATH which apparently points to /usr/local/bin plus whatever the system-wide setting is.



                            I recommend you use find / -name "rvm" and see where in the file system is rvm really located and then update your $PATH variable as so: export PATH=/path/to/rv/:$PATH






                            share|improve this answer













                            For this:



                            /Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh



                            The problem is this line:



                            source $ZSH/oh-my-zsh.sh


                            You don't have a file called oh-my-zsh.sh in /Users/jack/.oh-my-zsh



                            For this:



                            /Users/jack/.zshrc:source:38: no such file or directory: .bashrc



                            The problem is the same as above; essentially, you don't have .bashrc file in /Users/jack/



                            Your $ZSH is pointing to /Users/jack/.oh-my-zsh and it looks like there's no such file in that directory with the name zsh.sh



                            As far as the initial problem (zsh: command not found: rvm) the issue is that the command rvm is not located anywhere in your $PATH which apparently points to /usr/local/bin plus whatever the system-wide setting is.



                            I recommend you use find / -name "rvm" and see where in the file system is rvm really located and then update your $PATH variable as so: export PATH=/path/to/rv/:$PATH







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Dec 28 '11 at 23:23









                            IcarusIcarus

                            33114




                            33114

























                                1














                                Quick fix to this issue



                                /Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh


                                Make the executable, executable.



                                cd .oh-my-zsh/ && chmod 744 oh-my-zsh.sh


                                Then run exec zsh to restart your shell. If you don't get the error, and your selected theme is working, you are good to go.






                                share|improve this answer




























                                  1














                                  Quick fix to this issue



                                  /Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh


                                  Make the executable, executable.



                                  cd .oh-my-zsh/ && chmod 744 oh-my-zsh.sh


                                  Then run exec zsh to restart your shell. If you don't get the error, and your selected theme is working, you are good to go.






                                  share|improve this answer


























                                    1












                                    1








                                    1







                                    Quick fix to this issue



                                    /Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh


                                    Make the executable, executable.



                                    cd .oh-my-zsh/ && chmod 744 oh-my-zsh.sh


                                    Then run exec zsh to restart your shell. If you don't get the error, and your selected theme is working, you are good to go.






                                    share|improve this answer













                                    Quick fix to this issue



                                    /Users/jack/.zshrc:source:34: no such file or directory: /Users/jack/.oh-my-zsh/oh-my-zsh.sh


                                    Make the executable, executable.



                                    cd .oh-my-zsh/ && chmod 744 oh-my-zsh.sh


                                    Then run exec zsh to restart your shell. If you don't get the error, and your selected theme is working, you are good to go.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Nov 8 '16 at 15:14









                                    JrichJrich

                                    112




                                    112























                                        0














                                        Put the below line to your ~/.zshrc file to fix the error with rvm



                                        [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"





                                        share|improve this answer






























                                          0














                                          Put the below line to your ~/.zshrc file to fix the error with rvm



                                          [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"





                                          share|improve this answer




























                                            0












                                            0








                                            0







                                            Put the below line to your ~/.zshrc file to fix the error with rvm



                                            [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"





                                            share|improve this answer















                                            Put the below line to your ~/.zshrc file to fix the error with rvm



                                            [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"






                                            share|improve this answer














                                            share|improve this answer



                                            share|improve this answer








                                            edited May 27 '13 at 13:26









                                            Anthon

                                            61.2k17104168




                                            61.2k17104168










                                            answered May 27 '13 at 13:08









                                            Praveen Gowda I VPraveen Gowda I V

                                            1012




                                            1012























                                                0














                                                I had the following error:



                                                /Users/frankus/.zshrc:source:50: no such file or directory:  /Users/frankus/.oh-my-zsh^M/oh-my-zsh.sh


                                                I fixed it by renaming the oh-my-zsh folder



                                                mv ~/.oh-my-zsh^M ~/.oh-my-zsh





                                                share|improve this answer






























                                                  0














                                                  I had the following error:



                                                  /Users/frankus/.zshrc:source:50: no such file or directory:  /Users/frankus/.oh-my-zsh^M/oh-my-zsh.sh


                                                  I fixed it by renaming the oh-my-zsh folder



                                                  mv ~/.oh-my-zsh^M ~/.oh-my-zsh





                                                  share|improve this answer




























                                                    0












                                                    0








                                                    0







                                                    I had the following error:



                                                    /Users/frankus/.zshrc:source:50: no such file or directory:  /Users/frankus/.oh-my-zsh^M/oh-my-zsh.sh


                                                    I fixed it by renaming the oh-my-zsh folder



                                                    mv ~/.oh-my-zsh^M ~/.oh-my-zsh





                                                    share|improve this answer















                                                    I had the following error:



                                                    /Users/frankus/.zshrc:source:50: no such file or directory:  /Users/frankus/.oh-my-zsh^M/oh-my-zsh.sh


                                                    I fixed it by renaming the oh-my-zsh folder



                                                    mv ~/.oh-my-zsh^M ~/.oh-my-zsh






                                                    share|improve this answer














                                                    share|improve this answer



                                                    share|improve this answer








                                                    edited Aug 14 '14 at 7:51









                                                    HalosGhost

                                                    3,76392236




                                                    3,76392236










                                                    answered Aug 14 '14 at 7:09









                                                    Frank FuFrank Fu

                                                    1011




                                                    1011























                                                        0














                                                        I also got this error and the error is occurring due to simple typo.



                                                        In your .zshrc file where you set the name of the theme don't include quotation marks.
                                                        So instead of doing



                                                        ZSH_THEME="robbyrussell"


                                                        you should rdo the following



                                                        ZSH_THEME=robbyrussell


                                                        This will solve your problem of getting a error when opeing a new tabs.
                                                        Thanks.






                                                        share|improve this answer




























                                                          0














                                                          I also got this error and the error is occurring due to simple typo.



                                                          In your .zshrc file where you set the name of the theme don't include quotation marks.
                                                          So instead of doing



                                                          ZSH_THEME="robbyrussell"


                                                          you should rdo the following



                                                          ZSH_THEME=robbyrussell


                                                          This will solve your problem of getting a error when opeing a new tabs.
                                                          Thanks.






                                                          share|improve this answer


























                                                            0












                                                            0








                                                            0







                                                            I also got this error and the error is occurring due to simple typo.



                                                            In your .zshrc file where you set the name of the theme don't include quotation marks.
                                                            So instead of doing



                                                            ZSH_THEME="robbyrussell"


                                                            you should rdo the following



                                                            ZSH_THEME=robbyrussell


                                                            This will solve your problem of getting a error when opeing a new tabs.
                                                            Thanks.






                                                            share|improve this answer













                                                            I also got this error and the error is occurring due to simple typo.



                                                            In your .zshrc file where you set the name of the theme don't include quotation marks.
                                                            So instead of doing



                                                            ZSH_THEME="robbyrussell"


                                                            you should rdo the following



                                                            ZSH_THEME=robbyrussell


                                                            This will solve your problem of getting a error when opeing a new tabs.
                                                            Thanks.







                                                            share|improve this answer












                                                            share|improve this answer



                                                            share|improve this answer










                                                            answered Nov 15 '16 at 4:43









                                                            vikrantnegi007vikrantnegi007

                                                            1011




                                                            1011























                                                                0














                                                                whenever I opened a new terminal window (iterm2) I encountered the same problem:



                                                                /Users/XXX/.zshrc:source:129: no such file or directory: /oh-my-zsh.sh


                                                                after running source .zshrc everything loaded fine though.



                                                                I did however have a oh-my-zsh.sh in my ~/.oh-my-zsh directory.



                                                                (it doesnt need to be altered with chmod +x or anything.)



                                                                I realised everything I was missing was the line ZSH=$HOME/.oh-my-zsh before the lines with



                                                                export ZSH="/Users/XXX/.oh-my-zsh"
                                                                and source $ZSH/oh-my-zsh.sh






                                                                share|improve this answer




























                                                                  0














                                                                  whenever I opened a new terminal window (iterm2) I encountered the same problem:



                                                                  /Users/XXX/.zshrc:source:129: no such file or directory: /oh-my-zsh.sh


                                                                  after running source .zshrc everything loaded fine though.



                                                                  I did however have a oh-my-zsh.sh in my ~/.oh-my-zsh directory.



                                                                  (it doesnt need to be altered with chmod +x or anything.)



                                                                  I realised everything I was missing was the line ZSH=$HOME/.oh-my-zsh before the lines with



                                                                  export ZSH="/Users/XXX/.oh-my-zsh"
                                                                  and source $ZSH/oh-my-zsh.sh






                                                                  share|improve this answer


























                                                                    0












                                                                    0








                                                                    0







                                                                    whenever I opened a new terminal window (iterm2) I encountered the same problem:



                                                                    /Users/XXX/.zshrc:source:129: no such file or directory: /oh-my-zsh.sh


                                                                    after running source .zshrc everything loaded fine though.



                                                                    I did however have a oh-my-zsh.sh in my ~/.oh-my-zsh directory.



                                                                    (it doesnt need to be altered with chmod +x or anything.)



                                                                    I realised everything I was missing was the line ZSH=$HOME/.oh-my-zsh before the lines with



                                                                    export ZSH="/Users/XXX/.oh-my-zsh"
                                                                    and source $ZSH/oh-my-zsh.sh






                                                                    share|improve this answer













                                                                    whenever I opened a new terminal window (iterm2) I encountered the same problem:



                                                                    /Users/XXX/.zshrc:source:129: no such file or directory: /oh-my-zsh.sh


                                                                    after running source .zshrc everything loaded fine though.



                                                                    I did however have a oh-my-zsh.sh in my ~/.oh-my-zsh directory.



                                                                    (it doesnt need to be altered with chmod +x or anything.)



                                                                    I realised everything I was missing was the line ZSH=$HOME/.oh-my-zsh before the lines with



                                                                    export ZSH="/Users/XXX/.oh-my-zsh"
                                                                    and source $ZSH/oh-my-zsh.sh







                                                                    share|improve this answer












                                                                    share|improve this answer



                                                                    share|improve this answer










                                                                    answered Aug 14 '18 at 19:05









                                                                    TTYTTY

                                                                    1




                                                                    1























                                                                        0














                                                                        Installing zsh doesn't install Oh My Zsh, which might explain if you don't have an oh-my-zsh.sh file at all (this was the case for me).



                                                                        You can install Oh My Zsh by running



                                                                        sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"





                                                                        share|improve this answer




























                                                                          0














                                                                          Installing zsh doesn't install Oh My Zsh, which might explain if you don't have an oh-my-zsh.sh file at all (this was the case for me).



                                                                          You can install Oh My Zsh by running



                                                                          sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"





                                                                          share|improve this answer


























                                                                            0












                                                                            0








                                                                            0







                                                                            Installing zsh doesn't install Oh My Zsh, which might explain if you don't have an oh-my-zsh.sh file at all (this was the case for me).



                                                                            You can install Oh My Zsh by running



                                                                            sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"





                                                                            share|improve this answer













                                                                            Installing zsh doesn't install Oh My Zsh, which might explain if you don't have an oh-my-zsh.sh file at all (this was the case for me).



                                                                            You can install Oh My Zsh by running



                                                                            sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"






                                                                            share|improve this answer












                                                                            share|improve this answer



                                                                            share|improve this answer










                                                                            answered Feb 25 at 11:48









                                                                            Dávid PásztorDávid Pásztor

                                                                            1012




                                                                            1012






























                                                                                draft saved

                                                                                draft discarded




















































                                                                                Thanks for contributing an answer to Unix & Linux Stack Exchange!


                                                                                • Please be sure to answer the question. Provide details and share your research!

                                                                                But avoid



                                                                                • Asking for help, clarification, or responding to other answers.

                                                                                • Making statements based on opinion; back them up with references or personal experience.


                                                                                To learn more, see our tips on writing great answers.




                                                                                draft saved


                                                                                draft discarded














                                                                                StackExchange.ready(
                                                                                function () {
                                                                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f27851%2fafter-installing-oh-my-zsh-zshrcsource34-no-such-file-or-directory%23new-answer', 'question_page');
                                                                                }
                                                                                );

                                                                                Post as a guest















                                                                                Required, but never shown





















































                                                                                Required, but never shown














                                                                                Required, but never shown












                                                                                Required, but never shown







                                                                                Required, but never shown

































                                                                                Required, but never shown














                                                                                Required, but never shown












                                                                                Required, but never shown







                                                                                Required, but never shown







                                                                                Popular posts from this blog

                                                                                How to make a Squid Proxy server?

                                                                                Is this a new Fibonacci Identity?

                                                                                19世紀