completions/screen: Replace eval with var-as-command

[ci skip]
This commit is contained in:
Fabian Homborg 2019-01-01 14:00:51 +01:00
parent 4b8da10215
commit 9dc79cd8d5

View File

@ -1,7 +1,7 @@
function __fish_detect_screen_socket_dir -d "Detect which folder screen uses"
set screen_bin screen
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