Run urlview only if available

This commit is contained in:
gardouille 2024-03-14 16:38:26 +01:00
parent b5f4f84368
commit e2abef71ae
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ bind C-s set-window-option synchronize-panes
# Present a menu of URLs to open from visible pane
bind-key u capture-pane \;\
save-buffer ~/.tmux/.tmux-buffer \;\
split-window -l 15 "urlview ~/.tmux/.tmux-buffer"
if 'command -v urlview' 'split-window -l 15 "urlview ~/.tmux/.tmux-buffer"'
# Create a new session
unbind C-t