Sourcing an alias file in oh my zsh custom/ folderTweaking zsh git autocompletionHow to 'source' a shell...

Does a large simulator bay have standard public address announcements?

Why was the Spitfire's elliptical wing almost uncopied by other aircraft of World War 2?

Checks user level and limit the data before saving it to mongoDB

can anyone help me with this awful query plan?

Elements other than carbon that can form many different compounds by bonding to themselves?

How do I reattach a shelf to the wall when it ripped out of the wall?

Why did C use the -> operator instead of reusing the . operator?

Betweenness centrality formula

Map of water taps to fill bottles

How to stop co-workers from teasing me because I know Russian?

What does the integral of a function times a function of a random variable represent, conceptually?

A ​Note ​on ​N!

Can I grease a crank spindle/bracket without disassembling the crank set?

Dynamic SOQL query relationship with field visibility for Users

How to prevent z-fighting in OpenSCAD?

Does tea made with boiling water cool faster than tea made with boiled (but still hot) water?

Implications of cigar-shaped bodies having rings?

bldc motor, esc and battery draw, nominal vs peak

How can I practically buy stocks?

"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?

How to fry ground beef so it is well-browned

What happened to Captain America in Endgame?

Can an Area of Effect spell cast outside a Prismatic Wall extend inside it?

Is there really no use for MD5 anymore?



Sourcing an alias file in oh my zsh custom/ folder


Tweaking zsh git autocompletionHow to 'source' a shell script using bash from zsh?zsh alias “…”Advanced alias in zsh shellHow to save user made zsh shell functions and aliasesCreate expandable commandsInverse bolded % at zsh promptHow do I change or remove an alias in Zsh in MacOS?zsh local array declaration causes strange behavior






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







3















I am trying to use the aliases defined in my ~/.aliases file in my zsh with oh-my-zsh installation. The documentation suggested that aliases/functions/ etc. should go in .oh-my-zsh/custom/ as files with a .zsh extension.



I can make a file of aliases there using the keyword "alias" as normal. However, when I try making a file with the line "source ~/.aliases" -- this does not work.



What is the best way to go about this? Should I ditch the recommendation to use the oh-my-zsh/custom/ folder and instead source from .zshrc ?










share|improve this question





























    3















    I am trying to use the aliases defined in my ~/.aliases file in my zsh with oh-my-zsh installation. The documentation suggested that aliases/functions/ etc. should go in .oh-my-zsh/custom/ as files with a .zsh extension.



    I can make a file of aliases there using the keyword "alias" as normal. However, when I try making a file with the line "source ~/.aliases" -- this does not work.



    What is the best way to go about this? Should I ditch the recommendation to use the oh-my-zsh/custom/ folder and instead source from .zshrc ?










    share|improve this question

























      3












      3








      3








      I am trying to use the aliases defined in my ~/.aliases file in my zsh with oh-my-zsh installation. The documentation suggested that aliases/functions/ etc. should go in .oh-my-zsh/custom/ as files with a .zsh extension.



      I can make a file of aliases there using the keyword "alias" as normal. However, when I try making a file with the line "source ~/.aliases" -- this does not work.



      What is the best way to go about this? Should I ditch the recommendation to use the oh-my-zsh/custom/ folder and instead source from .zshrc ?










      share|improve this question














      I am trying to use the aliases defined in my ~/.aliases file in my zsh with oh-my-zsh installation. The documentation suggested that aliases/functions/ etc. should go in .oh-my-zsh/custom/ as files with a .zsh extension.



      I can make a file of aliases there using the keyword "alias" as normal. However, when I try making a file with the line "source ~/.aliases" -- this does not work.



      What is the best way to go about this? Should I ditch the recommendation to use the oh-my-zsh/custom/ folder and instead source from .zshrc ?







      shell arch-linux zsh oh-my-zsh






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 23 '17 at 15:43









      Elfen DewElfen Dew

      162




      162






















          2 Answers
          2






          active

          oldest

          votes


















          3














          My understanding is that you are trying to add your custom file aliases.zsh to the directory .oh-my-zsh/custom/



          I just did this and tried using one of the aliases I defined in the file and it worked. Just make sure you restart your terminal's session and have the correct alias formatting alias zshconfig="mate ~/.zshrc"






          share|improve this answer
























          • I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"

            – Elfen Dew
            May 24 '18 at 4:16






          • 1





            I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.

            – Elfen Dew
            May 24 '18 at 4:21



















          1














          You should just symlink your main file in the custom dir.



          ln -s ~/.aliases ~/.oh-my-zsh/custom/aliases.zsh





          share|improve this answer








          New contributor




          Simon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2fsuperuser.com%2fquestions%2f1271179%2fsourcing-an-alias-file-in-oh-my-zsh-custom-folder%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3














            My understanding is that you are trying to add your custom file aliases.zsh to the directory .oh-my-zsh/custom/



            I just did this and tried using one of the aliases I defined in the file and it worked. Just make sure you restart your terminal's session and have the correct alias formatting alias zshconfig="mate ~/.zshrc"






            share|improve this answer
























            • I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"

              – Elfen Dew
              May 24 '18 at 4:16






            • 1





              I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.

              – Elfen Dew
              May 24 '18 at 4:21
















            3














            My understanding is that you are trying to add your custom file aliases.zsh to the directory .oh-my-zsh/custom/



            I just did this and tried using one of the aliases I defined in the file and it worked. Just make sure you restart your terminal's session and have the correct alias formatting alias zshconfig="mate ~/.zshrc"






            share|improve this answer
























            • I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"

              – Elfen Dew
              May 24 '18 at 4:16






            • 1





              I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.

              – Elfen Dew
              May 24 '18 at 4:21














            3












            3








            3







            My understanding is that you are trying to add your custom file aliases.zsh to the directory .oh-my-zsh/custom/



            I just did this and tried using one of the aliases I defined in the file and it worked. Just make sure you restart your terminal's session and have the correct alias formatting alias zshconfig="mate ~/.zshrc"






            share|improve this answer













            My understanding is that you are trying to add your custom file aliases.zsh to the directory .oh-my-zsh/custom/



            I just did this and tried using one of the aliases I defined in the file and it worked. Just make sure you restart your terminal's session and have the correct alias formatting alias zshconfig="mate ~/.zshrc"







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 24 '18 at 1:40









            Harout360Harout360

            1312




            1312













            • I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"

              – Elfen Dew
              May 24 '18 at 4:16






            • 1





              I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.

              – Elfen Dew
              May 24 '18 at 4:21



















            • I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"

              – Elfen Dew
              May 24 '18 at 4:16






            • 1





              I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.

              – Elfen Dew
              May 24 '18 at 4:21

















            I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"

            – Elfen Dew
            May 24 '18 at 4:16





            I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases"

            – Elfen Dew
            May 24 '18 at 4:16




            1




            1





            I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.

            – Elfen Dew
            May 24 '18 at 4:21





            I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using.

            – Elfen Dew
            May 24 '18 at 4:21













            1














            You should just symlink your main file in the custom dir.



            ln -s ~/.aliases ~/.oh-my-zsh/custom/aliases.zsh





            share|improve this answer








            New contributor




            Simon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              1














              You should just symlink your main file in the custom dir.



              ln -s ~/.aliases ~/.oh-my-zsh/custom/aliases.zsh





              share|improve this answer








              New contributor




              Simon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                1












                1








                1







                You should just symlink your main file in the custom dir.



                ln -s ~/.aliases ~/.oh-my-zsh/custom/aliases.zsh





                share|improve this answer








                New contributor




                Simon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                You should just symlink your main file in the custom dir.



                ln -s ~/.aliases ~/.oh-my-zsh/custom/aliases.zsh






                share|improve this answer








                New contributor




                Simon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                Simon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered yesterday









                SimonSimon

                112




                112




                New contributor




                Simon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                Simon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                Simon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1271179%2fsourcing-an-alias-file-in-oh-my-zsh-custom-folder%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

                    VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                    Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

                    looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...