Use aliases as custom commands in terminatorCan I make scripts use aliases instead of commands?Terminator...

How is this practical and very old scene shot?

The warming up game

Comment traduire « That screams X »

I hit a pipe with a mower and now it won't turn

Prime parity peregrination

How can I deal with extreme temperatures in a hotel room?

Is there a legal way for US presidents to extend their terms beyond two terms of four years?

Word ending in "-ine" for rat-like

What is "oversubscription" in Networking?

Why were the first airplanes "backwards"?

How to properly say asset/assets in German

Could human civilization live 150 years in a nuclear-powered aircraft carrier colony without resorting to mass killing/ cannibalism?

Is there reliable evidence that depleted uranium from the 1999 NATO bombing is causing cancer in Serbia?

Are the requirements of a Horn of Valhalla cumulative?

Can a stressful Wish's Strength reduction be cured early by a Greater Restoration spell?

Single level file directory

Find the radius of the hoop.

Why was Mal so quick to drop Bester in favour of Kaylee?

Why did NASA wet the road in front of the Space Shuttle crawler?

Closest Proximity of Oceans to Freshwater Springs

Most elegant way to write a one-shot 'if'

How to unit test methods which using static methods?

Reusable spacecraft: why still have fairings detach, instead of open/close?

Are gliders susceptible to bird strikes?



Use aliases as custom commands in terminator


Can I make scripts use aliases instead of commands?Terminator won't open with default profileHow can I use aliases in commands?Terminator doesn't open new windowAdd parameters to default profile in terminatorTerminator custom colors overriden by KDEzsh parse error after alias do=…Split Terminator with external command?Terminator cant run node commandsTerminator: custom tasklist icon






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I am using a terminator layout to start multiple terminals, and would like to call an alias at each terminal start which is defined in my .bash_aliases (called by both .bashrc and .profile). Terminator unfortunately doesn't know about those aliases when starting the terminals. How can I fix that?



I start terminator with this command:



terminator -l my_layout -f


EDIT:



As a temporary solution, I ssh -A -YC into myself and then run the alias. All this as a custom command.










share|improve this question
















bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    1















    I am using a terminator layout to start multiple terminals, and would like to call an alias at each terminal start which is defined in my .bash_aliases (called by both .bashrc and .profile). Terminator unfortunately doesn't know about those aliases when starting the terminals. How can I fix that?



    I start terminator with this command:



    terminator -l my_layout -f


    EDIT:



    As a temporary solution, I ssh -A -YC into myself and then run the alias. All this as a custom command.










    share|improve this question
















    bumped to the homepage by Community 1 hour ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1


      1






      I am using a terminator layout to start multiple terminals, and would like to call an alias at each terminal start which is defined in my .bash_aliases (called by both .bashrc and .profile). Terminator unfortunately doesn't know about those aliases when starting the terminals. How can I fix that?



      I start terminator with this command:



      terminator -l my_layout -f


      EDIT:



      As a temporary solution, I ssh -A -YC into myself and then run the alias. All this as a custom command.










      share|improve this question
















      I am using a terminator layout to start multiple terminals, and would like to call an alias at each terminal start which is defined in my .bash_aliases (called by both .bashrc and .profile). Terminator unfortunately doesn't know about those aliases when starting the terminals. How can I fix that?



      I start terminator with this command:



      terminator -l my_layout -f


      EDIT:



      As a temporary solution, I ssh -A -YC into myself and then run the alias. All this as a custom command.







      alias command gnome-terminator






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 18 '15 at 14:26







      Mehdi

















      asked Nov 18 '15 at 13:48









      MehdiMehdi

      2052 gold badges3 silver badges11 bronze badges




      2052 gold badges3 silver badges11 bronze badges





      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Set an environment variable for your Terminator windows, and call the aliases from your .bashrc. In terminator's config:



          [layouts]
          [[default]]
          [[[child0]]]
          order = 0
          parent = ""
          type = Window
          [[[child1]]]
          labels = Alias0, Alias1, None
          order = 0
          parent = child0
          type = Notebook
          [[[terminal1]]]
          order = 0
          parent = alias0
          profile = root
          type = Terminal
          [[[terminal2]]]
          order = 1
          parent = child1
          profile = alias1
          type = Terminal
          [[[terminal3]]]
          order = 2
          parent = child1
          profile = default
          type = Terminal


          [profiles]
          [[alias0]]
          custom_command = MY_ALIAS=0 bash
          use_custom_command = True
          [[alias1]]
          custom_command = MY_ALIAS=1 bash
          use_custom_command = True


          And in .bashrc:



          case $MYALIAS in
          0) alias0
          ;;
          1) alias1
          ;;
          *)
          ;;
          esac





          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%2f243850%2fuse-aliases-as-custom-commands-in-terminator%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Set an environment variable for your Terminator windows, and call the aliases from your .bashrc. In terminator's config:



            [layouts]
            [[default]]
            [[[child0]]]
            order = 0
            parent = ""
            type = Window
            [[[child1]]]
            labels = Alias0, Alias1, None
            order = 0
            parent = child0
            type = Notebook
            [[[terminal1]]]
            order = 0
            parent = alias0
            profile = root
            type = Terminal
            [[[terminal2]]]
            order = 1
            parent = child1
            profile = alias1
            type = Terminal
            [[[terminal3]]]
            order = 2
            parent = child1
            profile = default
            type = Terminal


            [profiles]
            [[alias0]]
            custom_command = MY_ALIAS=0 bash
            use_custom_command = True
            [[alias1]]
            custom_command = MY_ALIAS=1 bash
            use_custom_command = True


            And in .bashrc:



            case $MYALIAS in
            0) alias0
            ;;
            1) alias1
            ;;
            *)
            ;;
            esac





            share|improve this answer




























              0














              Set an environment variable for your Terminator windows, and call the aliases from your .bashrc. In terminator's config:



              [layouts]
              [[default]]
              [[[child0]]]
              order = 0
              parent = ""
              type = Window
              [[[child1]]]
              labels = Alias0, Alias1, None
              order = 0
              parent = child0
              type = Notebook
              [[[terminal1]]]
              order = 0
              parent = alias0
              profile = root
              type = Terminal
              [[[terminal2]]]
              order = 1
              parent = child1
              profile = alias1
              type = Terminal
              [[[terminal3]]]
              order = 2
              parent = child1
              profile = default
              type = Terminal


              [profiles]
              [[alias0]]
              custom_command = MY_ALIAS=0 bash
              use_custom_command = True
              [[alias1]]
              custom_command = MY_ALIAS=1 bash
              use_custom_command = True


              And in .bashrc:



              case $MYALIAS in
              0) alias0
              ;;
              1) alias1
              ;;
              *)
              ;;
              esac





              share|improve this answer


























                0












                0








                0







                Set an environment variable for your Terminator windows, and call the aliases from your .bashrc. In terminator's config:



                [layouts]
                [[default]]
                [[[child0]]]
                order = 0
                parent = ""
                type = Window
                [[[child1]]]
                labels = Alias0, Alias1, None
                order = 0
                parent = child0
                type = Notebook
                [[[terminal1]]]
                order = 0
                parent = alias0
                profile = root
                type = Terminal
                [[[terminal2]]]
                order = 1
                parent = child1
                profile = alias1
                type = Terminal
                [[[terminal3]]]
                order = 2
                parent = child1
                profile = default
                type = Terminal


                [profiles]
                [[alias0]]
                custom_command = MY_ALIAS=0 bash
                use_custom_command = True
                [[alias1]]
                custom_command = MY_ALIAS=1 bash
                use_custom_command = True


                And in .bashrc:



                case $MYALIAS in
                0) alias0
                ;;
                1) alias1
                ;;
                *)
                ;;
                esac





                share|improve this answer













                Set an environment variable for your Terminator windows, and call the aliases from your .bashrc. In terminator's config:



                [layouts]
                [[default]]
                [[[child0]]]
                order = 0
                parent = ""
                type = Window
                [[[child1]]]
                labels = Alias0, Alias1, None
                order = 0
                parent = child0
                type = Notebook
                [[[terminal1]]]
                order = 0
                parent = alias0
                profile = root
                type = Terminal
                [[[terminal2]]]
                order = 1
                parent = child1
                profile = alias1
                type = Terminal
                [[[terminal3]]]
                order = 2
                parent = child1
                profile = default
                type = Terminal


                [profiles]
                [[alias0]]
                custom_command = MY_ALIAS=0 bash
                use_custom_command = True
                [[alias1]]
                custom_command = MY_ALIAS=1 bash
                use_custom_command = True


                And in .bashrc:



                case $MYALIAS in
                0) alias0
                ;;
                1) alias1
                ;;
                *)
                ;;
                esac






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 18 '15 at 14:36









                murumuru

                40.5k5 gold badges98 silver badges172 bronze badges




                40.5k5 gold badges98 silver badges172 bronze badges






























                    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%2f243850%2fuse-aliases-as-custom-commands-in-terminator%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

                    Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

                    The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

                    Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...