New answers tagged

0

tmux did that in version 1.8 but in 1.9 this feature was removed in favor of using -c flag. This can be solved but re-binding new-window but in case you want to run something else it becomes too wordy: instead of typing neww man tmux you'll have to type neww -c "#{pane_current_path}" man tmux which you most probably don't want to do. There's a mod of tmux ...


0

tmux has a table of escape-sequence patterns in the xterm-keys.c file so that it can support xterm-style modified special keys. It matches this pattern: { '\t', "\033[27;_;9~" }, to your string \033[27;5;9~ using the underscore character as a wildcard. The table maps escape sequences into things that tmux knows about: special keys, ...


1

The same exact thing happened to me. Building on what Thomas said above, I was able to fix it by uncommenting en_US.UTF-8 UTF-8 in my /etc/locale.gen file (previously none of the lines had been uncommented), then running locale-gen.


0

Try this: #!/bin/bash tmux new-session -d -s my_session tmux send "source ~/.bashrc" C-m tmux -2 attach-session -t my_session It should create a new session called my_session, excute the command and keep it open.


0

What about this: #!/bin/tmux source ~/.bashrc


1

Perhaps your upgrade replaced the locale alias you were using and did not provide a useful upgrade path to the new name(s). You can regenerate locale information on the server, but keep in mind that the problem may be in your /etc/locale.gen or locale.conf file. Further reading: Locale (Arch wiki) Why is almost every program complaining about my locale? ...


0

An alternative is to use uptime -p: #(uptime -p) Sample output: up 4 hours, 17 minutes I know that's not exactly what you wanted but close


0

This neither, but have a look at tmux-yank, as described in Use system clipboard in vi-copy mode in tmux and Getting tmux to copy a buffer to the clipboard. After installing, prefix + y - copies text from the command line to clipboard. copy mode bindings: y - copy selection to system clipboard


0

This is the full list of 'extended' key names available in tmux 2.2 (ripped from the source): /* Function keys. */ F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 IC DC Home End NPage PageDown PgDn PPage PageUp PgUp Tab BTab Space BSpace Enter Escape /* Arrow keys. */ Up Down Left Right /* Numeric keypad. */ KP/ KP* KP- KP7 KP8 KP9 KP+ KP4 KP5 KP6 KP1 ...


0

There's a patch allowing full-fledged scripting inside tmux, attaching tcl language to its internals. http://ershov.github.io/tmux/ Also, it allows to specify as many actions as you want for 'mode' keystrokes. Using that, your code would look like: bind R tcl { source-file "$HOME/.tmux.conf" ; display-message "Configuration reloaded." } or even more ...


0

The problem is that tmux does not expect a control0. In key_string_lookup_string, it strips off the modifiers, and then (because you have the control modifier) tries to convert it from something like ^A (see source code). But ASCII digits range from 48 to 57, and you can see from the code that tmux will not accept a digit, returning KEYC_UNKNOWN (a ...


1

Take a look at the tmux-yank plugin for tmux. https://github.com/tmux-plugins/tmux-yank It provides an automated way to copy/paste from tmux to the system clipboard. It works on OSX/Linux/Cygwin systems.


0

I wanted this feature as well. I basically merged everything into this .tmux.conf # cat <<__DATA__ >/dev/null # Embed shell scripts set -g status-utf8 on set -g utf8 on set -g default-terminal "screen-256color" run "cut -c3- ~/.tmux.conf | bash -s apply_configuration" # __DATA__ # # apply_configuration() { # tmux set -g status-bg ...


0

The value of TERM is irrelevant. As I pointed out in tmux doesn't passes correctly ctrl-shift-arrow sequences, tmux has a table of xterm-style special keys which it knows about. For this case, the table xterm_keys_table has an entry for insert: { KEYC_IC, "\033[2;_~" }, which means that it normally converts any of the variations with a ...


0

OS-X is a little tricky as I found out the hard way. The function keys are hidden behind the Fn (but I'm guessing you already found that since you said they work unmodified) Most of the function keys with the Fn applied are already assigned to other functions. Visit the Keyboard Shortcuts in System Prefs to fix these. What I have done is: Reverted to ...


1

Start tmux as follows: (cd /aaa/bbb; tmux) Now, any new windows (or panes) you create will start in directory /aaa/bbb, regardless of the current directory of the current pane. If you want to change the default directory once tmux is up and running, use attach-session with -c. Quoting from the tmux man page for attach-session: -c will set the session ...



Top 50 recent answers are included