mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 12:11:20 -03:00
completions/screen: Replace eval with var-as-command
[ci skip]
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
function __fish_detect_screen_socket_dir -d "Detect which folder screen uses"
|
function __fish_detect_screen_socket_dir -d "Detect which folder screen uses"
|
||||||
set screen_bin screen
|
set screen_bin screen
|
||||||
if not set -q __fish_screen_socket_dir
|
if not set -q __fish_screen_socket_dir
|
||||||
set -g __fish_screen_socket_dir (eval $screen_bin -ls __fish_i_don_t_think_this_will_be_matched | string match -r "(?<=No Sockets found in ).*(?=\.)")
|
set -g __fish_screen_socket_dir ($screen_bin -ls __fish_i_don_t_think_this_will_be_matched | string match -r "(?<=No Sockets found in ).*(?=\.)")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user