gammarays,

In tmux, you usually set configuration options with set -g in tmux.conf. “-g” sets a global option which will apply to all new windows and sessions, otherwise the option applies only for the current window, which is usually not what you want.

Since command-alias is an array, you can use the -a flag to append a new value at the end.

With that said, try this:


<span style="color:#323232;">set -ga command-alias s="new-window ssh foo"
</span>

Keep in mind that run in tmux runs a shell command in the background, so you most likely want to use something like new-window or new-session instead.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • [email protected]
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • Socialism
  • TheResearchGuardian
  • Ask_kbincafe
  • KbinCafe
  • SuperSentai
  • feritale
  • KamenRider
  • All magazines