Run urlscan if available
This commit is contained in:
parent
e2abef71ae
commit
9636339acf
|
@ -13,7 +13,7 @@
|
|||
##
|
||||
## Dépendances:
|
||||
## physlock : lightweight Linux console locking tool (CTRL+b x).
|
||||
## urlview : Extracts URLs from text (CTRL+b u).
|
||||
## urlview|urlscan : Extracts URLs from text (CTRL+b u).
|
||||
## cmatrix : Simulates the display from "The Matrix" used both with *physlock* (CTRL-b x).
|
||||
|
||||
### colors {{{
|
||||
|
@ -132,7 +132,8 @@ 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 \;\
|
||||
if 'command -v urlview' 'split-window -l 15 "urlview ~/.tmux/.tmux-buffer"'
|
||||
if 'command -v urlview' 'split-window -l 15 "urlview ~/.tmux/.tmux-buffer"' \;\
|
||||
if 'command -v urlscan' 'split-window -l 15 "urlscan ~/.tmux/.tmux-buffer"'
|
||||
|
||||
# Create a new session
|
||||
unbind C-t
|
||||
|
|
Loading…
Reference in New Issue