Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
0 answers
570 views
How do I fix Tmux status bar?
I tried a new theme plugin I found from gihub: [tmux-tokyo-night][1]. I didn't like it, so I removed the plugin (confirmed with my .tmux.conf file that it was removed) but the broken status bar won't go away: [![enter image description here][2]][2] I tried uninstalling/reinstalling tmux multiple tim...
I tried a new theme plugin I found from gihub: tmux-tokyo-night . I didn't like it, so I removed the plugin (confirmed with my .tmux.conf file that it was removed) but the broken status bar won't go away: enter image description here I tried uninstalling/reinstalling tmux multiple times and I can't seem to fix it. Does anyone know what's going on?
lsh0723 (1 rep)
Mar 10, 2024, 08:28 AM • Last activity: Mar 10, 2024, 08:29 AM
1 votes
1 answers
1614 views
How to properly configure plugins in tmux?
All plugin installation examples use the configuration file `~/.tmux.conf` as if it exists. I don't have this file anywhere, the attempt to create it manually and add plugins is simply ignored. Where is this file located? Why the attempt to install [the plugin manager][1] is simply ignored. I'm clon...
All plugin installation examples use the configuration file ~/.tmux.conf as if it exists. I don't have this file anywhere, the attempt to create it manually and add plugins is simply ignored. Where is this file located? Why the attempt to install the plugin manager is simply ignored. I'm cloning a repository. git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm I create an ~/.tmux.conf file with my hands and insert the following contents into it. # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' I specify the path to the files and restart tmux. Nothing happens, I tried to add different plugins and nothing. tmux source ~/.tmux.conf My final configuration file: # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'dracula/tmux' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm'
Santa Monica (121 rep)
Dec 9, 2022, 06:32 PM • Last activity: Sep 3, 2023, 07:45 AM
4 votes
1 answers
1394 views
How can I use a mac to scroll and copy-paste text on the tmux via ssh?
I always use macos Terminal.app to control my ubuntu servers via ssh, and I need to use tmux to keep my program running in background. Now, I know how to configure the tmux (on my ubuntu servers) to enable scroll screen by mouse: add configuration to the .tmux.conf file : set -g mouse on But I found...
I always use macos Terminal.app to control my ubuntu servers via ssh, and I need to use tmux to keep my program running in background. Now, I know how to configure the tmux (on my ubuntu servers) to enable scroll screen by mouse: add configuration to the .tmux.conf file : set -g mouse on But I found it doesn't work when I want to copy text on my Terminal.app, shift + left drag and shift + wheel can't copy and paste. How should I configure tmux on server to enable scroll and copy-paste at same time ? Or what kind of third-party terminal application should I use to realize these two functions?
Nico (151 rep)
Dec 18, 2018, 04:33 PM • Last activity: Feb 13, 2023, 08:23 AM
3 votes
1 answers
238 views
How to ovewrite plugins configuration with user configuration?
I'd like to use tmux-pain-control but I have C-h set to move window left, and since tpm says it needs to go at the very bottom of the configuration file, the plugins always overwrite my configuration. How can I make it so I can overwrite the plugin configuration?
I'd like to use tmux-pain-control but I have C-h set to move window left, and since tpm says it needs to go at the very bottom of the configuration file, the plugins always overwrite my configuration. How can I make it so I can overwrite the plugin configuration?
user96101
Jul 5, 2021, 03:28 PM • Last activity: Jul 6, 2021, 11:33 AM
1 votes
1 answers
927 views
tmux: How to copy large bodies of text to system clipboard?
I shift click to select text then shift-C-c to copy it to the system clipboard, but I can't do this and scroll to copy large bodies of text and can't do it using only keys either. I'm running kali 2020.4, zsh, tmux 3.1c, and xterm-256color (in tmux it is screen). I have downloaded xclip and xsel. I...
I shift click to select text then shift-C-c to copy it to the system clipboard, but I can't do this and scroll to copy large bodies of text and can't do it using only keys either. I'm running kali 2020.4, zsh, tmux 3.1c, and xterm-256color (in tmux it is screen). I have downloaded xclip and xsel. I killed my tmux session before I made any changes to .tmux.conf. Some of the options I tried gave me this when I started up tmux, which I had to C-c in order to do anything: /home/zander/.tmux.conf:17: usage: bind-key [-nr] [-T key-table] [-N note] key command [arguments] I am able to C-b [, C-space to select text with arrows, but when I press y or enter nothing happens. C-w or alt-w works to copy it to the tmux buffer, but I want it in my system buffer/clipboard so I can paste it in other apps. Here is my ~/.tmux.conf file, each commented out line is an attempt I made. # enable scrollwheel set -g mouse on # auto scroll when shift clicking. only partially worked. # set -g terminal-overrides 'xterm*:smcup@:rmcup@' # copy to system buffer (clipboard). also didn't work. # bind -t vi-copy y copy-pipe "xclip -sel clip -i" # copy to system buffer...also didn't work wtf. someone said it was because mouse scrollwheel was enabled but I tested that and that's not it. #bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard" # copy to clipboard again # bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard' # take f***ing 4 # bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i' # take f***ing 5 # bind -t vi-copy Enter copy-pipe "xclip -i -selection clipboard" # trying with xsel now # bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xsel -i --clipboard" # trying with yank now...C-b I didn't work # set -g @plugin 'tmux-plugins/tmux-yank' # manually downloaded tmux-yank...pressing y to copy to system clipboard still doesn't work # run-shell ~/clone/path/yank.tmux
zapata013 (19 rep)
Jan 21, 2021, 02:43 PM • Last activity: Jan 22, 2021, 11:54 AM
1 votes
1 answers
1392 views
tmux copy is slow on macOS
I am having this issue for about 2 years now (since I started to use tmux in Summer 2018) and I have not found a solution to this problem. Any help is greatly appreciated! The copy functionality of tmux is slow. Often times when I copy using mouse selection, and then I paste in the terminal it almos...
I am having this issue for about 2 years now (since I started to use tmux in Summer 2018) and I have not found a solution to this problem. Any help is greatly appreciated! The copy functionality of tmux is slow. Often times when I copy using mouse selection, and then I paste in the terminal it almost always pastes what I thought was in the clipboard previously, it never copied the current mouse over selection into the clipboard. I have to select and then wait for a bit (usually a second or so). I am so used to the copy current mouse selection from linux, iTerm2 on macOS and they are blazingly fast, I never have to think about or wait for the selection to be copied. This causes problems because sometimes my clipboard has sentences and when I mouse over let's say a dir path/filename/git commit hash, etc. and paste in the terminal thinking that a dir path/filename/git commit hash will be pasted, here comes a barrage of sentences. I have tried a few ways to address this problem none of them to my satisfaction. 1. I tried to print a message after the copy was done:
bind -T copy-mode-vi Tab send -X copy-pipe "reattach-to-user-namespace pbcopy"\; display-message "copied to system clipboard"
2. I saw the mistake I was doing with calling reattach-to-use-namespace every time on selection, so instead, I started tmux only once with this program:
set-option -g default-command "reattach-to-user-namespace -l bash"
    bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe "pbcopy" \; display-message "copied to system clipboard"
3. Later I switched to tmux-plugins/tmux-sensible which starts tmux with reattach-to-user-namespace. 4. And now a few weeks back I disabled all the bind-key copy configuration and switched to tmux-plugins/tmux-yank . I prefer the tmux-yank configuration better than what I had. But the slowness or delay in copying still persists, I am often pasting the wrong information, thinking the mouse selection is copied into the system clipboard. I also running updated software as much as possible, hoping to see some improvements. The issue is I do not where the problem is to debug further. Is the slowness in tmux or reattach-to-user-namespace or Alacritty or OS X. I tried switching back to iTerm2 because this issue was getting annoying but after using Alacritty , iTerm2 is sluggish and slow, as I am streaming a lot logs in the terminal for debugging. And unfortunately Alacritty does not support multi-window mode or tabs at the moment. Alacritty+tmux on macOS is the perfect solution at the moment for me, except for this once annoyance with the slowness in copy. I am running: - tmux 3.1b - reattach-to-user-namespace 2.8 - alacritty 0.4.2 (f68de37) - macOS Catalina 10.15.4 I ran into this https://github.com/alacritty/copypasta , I want to give this a try and see if this improves the situation. And just for writing this question, I pasted the wrong info many times and had to go back and wait for the copy to properly finish.
krafts (35 rep)
May 27, 2020, 03:55 PM • Last activity: May 27, 2020, 04:17 PM
0 votes
1 answers
591 views
Clear tmux status bar completely
I have been messing around with my tmux status bar and have behavior I don't know how to explain. I wish to clear the entire status bar and start layering it step by step, to understand what each piece does. I do the following: [![enter image description here][1]][1] Where are the boxes with questio...
I have been messing around with my tmux status bar and have behavior I don't know how to explain. I wish to clear the entire status bar and start layering it step by step, to understand what each piece does. I do the following: enter image description here Where are the boxes with question marks coming from, and how do I get rid of them? I have disabled all my tmux plugins and started a new session but to no avail. Any help is appreciated.
snar (103 rep)
Apr 23, 2020, 03:41 PM • Last activity: Apr 23, 2020, 03:49 PM
1 votes
1 answers
711 views
Measure startup times of tmux
I'd like to profile the performance of `tmux`. In particular how fast starting up a session is (and maybe also attaching to a session). I'm especially interested in how the content of my `.tmux.conf` file affects startup times (I use plugins). How could I measure that in an objective way? As an exam...
I'd like to profile the performance of tmux. In particular how fast starting up a session is (and maybe also attaching to a session). I'm especially interested in how the content of my .tmux.conf file affects startup times (I use plugins). How could I measure that in an objective way? As an example of what I'm interested in, I run this to profile the startup times of my zsh setup.
lang-bash
repeat 5 {/usr/bin/time zsh -i -c exit}
I've tried automating things with commands like the one below, but I can't figure out how to get timings. Also, this seems to execute asynchonously, the command finishes before the session is killed.
lang-bash
tmux new-session -d -s test && tmux send-keys "exit" Enter
Klas Mellbourn (417 rep)
Nov 22, 2019, 01:14 PM • Last activity: Nov 22, 2019, 01:38 PM
1 votes
2 answers
427 views
Buttons for new panes in tmux
I find `Ctrl+b "` and `Ctrl+b x` to be difficult to press quickly. I know you can change the prefix to something else, and rebind keys. However I'd ideally like buttons that allow me to create new panes and close them. This would work well with the mouse mode I'm already using to resize and switch t...
I find Ctrl+b " and Ctrl+b x to be difficult to press quickly. I know you can change the prefix to something else, and rebind keys. However I'd ideally like buttons that allow me to create new panes and close them. This would work well with the mouse mode I'm already using to resize and switch to panes. Is there a tmux plugin that would give me buttons like this?
Adam Griffiths (361 rep)
Oct 15, 2019, 08:36 AM • Last activity: Oct 15, 2019, 02:27 PM
0 votes
1 answers
568 views
Centos 7 minimal, installing tmux app manager and fluxbox styles
I'm having difficulty installing things like tmux app manager and fluxbox styles. In both cases i attempt to tar into their directories `~/.tmux/plugins/tpm` & `~/.fluxbox/styles` like this `sudo tar -xjf trinity.tar.bz2 ~/.fluxbox/styles` however I get an error stating that `/styles` is not a direc...
I'm having difficulty installing things like tmux app manager and fluxbox styles. In both cases i attempt to tar into their directories ~/.tmux/plugins/tpm & ~/.fluxbox/styles like this sudo tar -xjf trinity.tar.bz2 ~/.fluxbox/styles however I get an error stating that /styles is not a directory. Same with /tpm. They are indeed there, but they are not directories. I'm very confused. Where do I unpack my tar files?
sodaTab (3 rep)
Aug 2, 2019, 03:36 PM • Last activity: Aug 12, 2019, 09:24 PM
0 votes
0 answers
147 views
Tmux-logging: zle reset-prompt cause enter in log file
I need real-time clock in prompt so I enable trap with `zle reset-prompt`, this causing tmux-logging continue to capture like enter with `TMOUT=1` - each 1s causing like new line, I have bunch of these lines in log file: [user@localhost ~] [user@localhost ~] [user@localhost ~] [user@localhost ~] How...
I need real-time clock in prompt so I enable trap with zle reset-prompt, this causing tmux-logging continue to capture like enter with TMOUT=1 - each 1s causing like new line, I have bunch of these lines in log file: [user@localhost ~] [user@localhost ~] [user@localhost ~] [user@localhost ~] How could I avoid this? make tmux-logging ignore the trap/reset-prompt?
raring-coffee20 (1855 rep)
Aug 30, 2018, 04:50 AM
0 votes
1 answers
383 views
Documentation about tmux TPM plugins
I'm wanting to build a TPM based [plugin](https://github.com/Thermatix/tmux_pane_status) but the [example](https://github.com/tmux-plugins/tmux-example-plugin) provided is extremely minimal, doesn't explain how to do things (like creating commmands that can be used in the tmux status bar, or how to...
I'm wanting to build a TPM based [plugin](https://github.com/Thermatix/tmux_pane_status) but the [example](https://github.com/tmux-plugins/tmux-example-plugin) provided is extremely minimal, doesn't explain how to do things (like creating commmands that can be used in the tmux status bar, or how to have args passed to the plugin for example). Is there a super annotated plugin I can look at to get a better idea of how it works? or some better information about this?
Thermatix (361 rep)
Aug 11, 2018, 01:35 PM • Last activity: Aug 11, 2018, 05:26 PM
Showing page 1 of 12 total questions