Make sourced .bash_profile works immediately in current window

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I use a macOS to connect to an Ubuntu server, after defining new .bash_profile (like upgrading node.js or making new alias), I will have to exit the ssh and login again after sourcing the .bash_profile before the updated bash to take effect is it possible to refresh the session in current terminal ssh session?










share|improve this question

















  • 1




    I'm voting to close this question as off-topic because this has nothing to do with Apple software or hardware. It is to so with the software on the Ubuntu server
    – Mark
    2 hours ago










  • The question also appears on Ask Ubuntu: askubuntu.com/q/1085552/10127
    – glenn jackman
    1 hour ago














up vote
1
down vote

favorite












I use a macOS to connect to an Ubuntu server, after defining new .bash_profile (like upgrading node.js or making new alias), I will have to exit the ssh and login again after sourcing the .bash_profile before the updated bash to take effect is it possible to refresh the session in current terminal ssh session?










share|improve this question

















  • 1




    I'm voting to close this question as off-topic because this has nothing to do with Apple software or hardware. It is to so with the software on the Ubuntu server
    – Mark
    2 hours ago










  • The question also appears on Ask Ubuntu: askubuntu.com/q/1085552/10127
    – glenn jackman
    1 hour ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I use a macOS to connect to an Ubuntu server, after defining new .bash_profile (like upgrading node.js or making new alias), I will have to exit the ssh and login again after sourcing the .bash_profile before the updated bash to take effect is it possible to refresh the session in current terminal ssh session?










share|improve this question













I use a macOS to connect to an Ubuntu server, after defining new .bash_profile (like upgrading node.js or making new alias), I will have to exit the ssh and login again after sourcing the .bash_profile before the updated bash to take effect is it possible to refresh the session in current terminal ssh session?







terminal bash ssh






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 3 hours ago









aeroxy

1,31261839




1,31261839







  • 1




    I'm voting to close this question as off-topic because this has nothing to do with Apple software or hardware. It is to so with the software on the Ubuntu server
    – Mark
    2 hours ago










  • The question also appears on Ask Ubuntu: askubuntu.com/q/1085552/10127
    – glenn jackman
    1 hour ago












  • 1




    I'm voting to close this question as off-topic because this has nothing to do with Apple software or hardware. It is to so with the software on the Ubuntu server
    – Mark
    2 hours ago










  • The question also appears on Ask Ubuntu: askubuntu.com/q/1085552/10127
    – glenn jackman
    1 hour ago







1




1




I'm voting to close this question as off-topic because this has nothing to do with Apple software or hardware. It is to so with the software on the Ubuntu server
– Mark
2 hours ago




I'm voting to close this question as off-topic because this has nothing to do with Apple software or hardware. It is to so with the software on the Ubuntu server
– Mark
2 hours ago












The question also appears on Ask Ubuntu: askubuntu.com/q/1085552/10127
– glenn jackman
1 hour ago




The question also appears on Ask Ubuntu: askubuntu.com/q/1085552/10127
– glenn jackman
1 hour ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote













You can refresh the settings by running



. ~/.bashrc


This will reread (source) the file.






share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "118"
    ;
    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f340130%2fmake-sourced-bash-profile-works-immediately-in-current-window%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    You can refresh the settings by running



    . ~/.bashrc


    This will reread (source) the file.






    share|improve this answer


























      up vote
      3
      down vote













      You can refresh the settings by running



      . ~/.bashrc


      This will reread (source) the file.






      share|improve this answer
























        up vote
        3
        down vote










        up vote
        3
        down vote









        You can refresh the settings by running



        . ~/.bashrc


        This will reread (source) the file.






        share|improve this answer














        You can refresh the settings by running



        . ~/.bashrc


        This will reread (source) the file.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 1 hour ago

























        answered 2 hours ago









        nohillside♦

        49.3k13108144




        49.3k13108144



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f340130%2fmake-sourced-bash-profile-works-immediately-in-current-window%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            Long meetings (6-7 hours a day): Being “babysat” by supervisor

            Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

            Confectionery