Change tmux prefix control keyboard shortcut to alt keyboard shortcut












20














Is it possible to change the tmux prefix keyboard shortcut ctrl+B to alt+B?










share|improve this question





























    20














    Is it possible to change the tmux prefix keyboard shortcut ctrl+B to alt+B?










    share|improve this question



























      20












      20








      20


      1





      Is it possible to change the tmux prefix keyboard shortcut ctrl+B to alt+B?










      share|improve this question















      Is it possible to change the tmux prefix keyboard shortcut ctrl+B to alt+B?







      tmux






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 12 '12 at 9:10







      xralf

















      asked May 11 '12 at 16:28









      xralfxralf

      2,1381970119




      2,1381970119






















          3 Answers
          3






          active

          oldest

          votes


















          17














          Yes. See for example this link:



          set-option -g prefix M-b





          share|improve this answer























          • There is only described configuration for ctrl+A which (strangely) doesn't work for me. But I'd like to use rather alt instead of control
            – xralf
            May 11 '12 at 19:03








          • 3




            Change "c" to "m" (see the man page).
            – Lars Kotthoff
            May 11 '12 at 21:57






          • 14




            Please do not answer with just a link. Your post must stand on its own. Include the relevant information in your post, keep the link for reference.
            – Gilles
            May 12 '12 at 2:50






          • 1




            The link you provided does not work
            – St.Antario
            Sep 23 '16 at 17:49






          • 1




            Works fine for me.
            – Lars Kotthoff
            Sep 23 '16 at 23:35



















          15














          Just extracted the link answered by @Lars Kotthof



          Changing tmux prefix to Alt+b:



          set-option -g prefix M-b





          share|improve this answer





























            0














            As other have noted, you can do this by describing your favorite control sequence in e.g. the ~/.tmux.conf config file.



            set-option -g prefix M-b


            You can also execute this from within tmux by using the command-prompt command, ie. the current prefix and the : character, to run the set-option command interactively. I.e., type Ctrl-b then these characters, as is:



            :set-option -g prefix M-b


            followed by the Enter key






            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%2f38436%2fchange-tmux-prefix-control-keyboard-shortcut-to-alt-keyboard-shortcut%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              17














              Yes. See for example this link:



              set-option -g prefix M-b





              share|improve this answer























              • There is only described configuration for ctrl+A which (strangely) doesn't work for me. But I'd like to use rather alt instead of control
                – xralf
                May 11 '12 at 19:03








              • 3




                Change "c" to "m" (see the man page).
                – Lars Kotthoff
                May 11 '12 at 21:57






              • 14




                Please do not answer with just a link. Your post must stand on its own. Include the relevant information in your post, keep the link for reference.
                – Gilles
                May 12 '12 at 2:50






              • 1




                The link you provided does not work
                – St.Antario
                Sep 23 '16 at 17:49






              • 1




                Works fine for me.
                – Lars Kotthoff
                Sep 23 '16 at 23:35
















              17














              Yes. See for example this link:



              set-option -g prefix M-b





              share|improve this answer























              • There is only described configuration for ctrl+A which (strangely) doesn't work for me. But I'd like to use rather alt instead of control
                – xralf
                May 11 '12 at 19:03








              • 3




                Change "c" to "m" (see the man page).
                – Lars Kotthoff
                May 11 '12 at 21:57






              • 14




                Please do not answer with just a link. Your post must stand on its own. Include the relevant information in your post, keep the link for reference.
                – Gilles
                May 12 '12 at 2:50






              • 1




                The link you provided does not work
                – St.Antario
                Sep 23 '16 at 17:49






              • 1




                Works fine for me.
                – Lars Kotthoff
                Sep 23 '16 at 23:35














              17












              17








              17






              Yes. See for example this link:



              set-option -g prefix M-b





              share|improve this answer














              Yes. See for example this link:



              set-option -g prefix M-b






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Mar 29 '17 at 18:52









              terdon

              129k32253428




              129k32253428










              answered May 11 '12 at 18:32









              Lars KotthoffLars Kotthoff

              824611




              824611












              • There is only described configuration for ctrl+A which (strangely) doesn't work for me. But I'd like to use rather alt instead of control
                – xralf
                May 11 '12 at 19:03








              • 3




                Change "c" to "m" (see the man page).
                – Lars Kotthoff
                May 11 '12 at 21:57






              • 14




                Please do not answer with just a link. Your post must stand on its own. Include the relevant information in your post, keep the link for reference.
                – Gilles
                May 12 '12 at 2:50






              • 1




                The link you provided does not work
                – St.Antario
                Sep 23 '16 at 17:49






              • 1




                Works fine for me.
                – Lars Kotthoff
                Sep 23 '16 at 23:35


















              • There is only described configuration for ctrl+A which (strangely) doesn't work for me. But I'd like to use rather alt instead of control
                – xralf
                May 11 '12 at 19:03








              • 3




                Change "c" to "m" (see the man page).
                – Lars Kotthoff
                May 11 '12 at 21:57






              • 14




                Please do not answer with just a link. Your post must stand on its own. Include the relevant information in your post, keep the link for reference.
                – Gilles
                May 12 '12 at 2:50






              • 1




                The link you provided does not work
                – St.Antario
                Sep 23 '16 at 17:49






              • 1




                Works fine for me.
                – Lars Kotthoff
                Sep 23 '16 at 23:35
















              There is only described configuration for ctrl+A which (strangely) doesn't work for me. But I'd like to use rather alt instead of control
              – xralf
              May 11 '12 at 19:03






              There is only described configuration for ctrl+A which (strangely) doesn't work for me. But I'd like to use rather alt instead of control
              – xralf
              May 11 '12 at 19:03






              3




              3




              Change "c" to "m" (see the man page).
              – Lars Kotthoff
              May 11 '12 at 21:57




              Change "c" to "m" (see the man page).
              – Lars Kotthoff
              May 11 '12 at 21:57




              14




              14




              Please do not answer with just a link. Your post must stand on its own. Include the relevant information in your post, keep the link for reference.
              – Gilles
              May 12 '12 at 2:50




              Please do not answer with just a link. Your post must stand on its own. Include the relevant information in your post, keep the link for reference.
              – Gilles
              May 12 '12 at 2:50




              1




              1




              The link you provided does not work
              – St.Antario
              Sep 23 '16 at 17:49




              The link you provided does not work
              – St.Antario
              Sep 23 '16 at 17:49




              1




              1




              Works fine for me.
              – Lars Kotthoff
              Sep 23 '16 at 23:35




              Works fine for me.
              – Lars Kotthoff
              Sep 23 '16 at 23:35













              15














              Just extracted the link answered by @Lars Kotthof



              Changing tmux prefix to Alt+b:



              set-option -g prefix M-b





              share|improve this answer


























                15














                Just extracted the link answered by @Lars Kotthof



                Changing tmux prefix to Alt+b:



                set-option -g prefix M-b





                share|improve this answer
























                  15












                  15








                  15






                  Just extracted the link answered by @Lars Kotthof



                  Changing tmux prefix to Alt+b:



                  set-option -g prefix M-b





                  share|improve this answer












                  Just extracted the link answered by @Lars Kotthof



                  Changing tmux prefix to Alt+b:



                  set-option -g prefix M-b






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 4 '15 at 11:23









                  André HerculanoAndré Herculano

                  25124




                  25124























                      0














                      As other have noted, you can do this by describing your favorite control sequence in e.g. the ~/.tmux.conf config file.



                      set-option -g prefix M-b


                      You can also execute this from within tmux by using the command-prompt command, ie. the current prefix and the : character, to run the set-option command interactively. I.e., type Ctrl-b then these characters, as is:



                      :set-option -g prefix M-b


                      followed by the Enter key






                      share|improve this answer




























                        0














                        As other have noted, you can do this by describing your favorite control sequence in e.g. the ~/.tmux.conf config file.



                        set-option -g prefix M-b


                        You can also execute this from within tmux by using the command-prompt command, ie. the current prefix and the : character, to run the set-option command interactively. I.e., type Ctrl-b then these characters, as is:



                        :set-option -g prefix M-b


                        followed by the Enter key






                        share|improve this answer


























                          0












                          0








                          0






                          As other have noted, you can do this by describing your favorite control sequence in e.g. the ~/.tmux.conf config file.



                          set-option -g prefix M-b


                          You can also execute this from within tmux by using the command-prompt command, ie. the current prefix and the : character, to run the set-option command interactively. I.e., type Ctrl-b then these characters, as is:



                          :set-option -g prefix M-b


                          followed by the Enter key






                          share|improve this answer














                          As other have noted, you can do this by describing your favorite control sequence in e.g. the ~/.tmux.conf config file.



                          set-option -g prefix M-b


                          You can also execute this from within tmux by using the command-prompt command, ie. the current prefix and the : character, to run the set-option command interactively. I.e., type Ctrl-b then these characters, as is:



                          :set-option -g prefix M-b


                          followed by the Enter key







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Jan 7 at 22:57

























                          answered Jan 7 at 22:43









                          nealmcbnealmcb

                          284313




                          284313






























                              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%2f38436%2fchange-tmux-prefix-control-keyboard-shortcut-to-alt-keyboard-shortcut%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?

                              Touch on Surface Book