-
Notifications
You must be signed in to change notification settings - Fork 111
/
xfce.vim
28 lines (24 loc) · 862 Bytes
/
xfce.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"======================================================================
"
" xfce.vim -
"
" Created by skywind on 2021/12/15
" Last Modified: 2021/12/15 06:33:35
"
"======================================================================
"----------------------------------------------------------------------
" gnome-terminal
"----------------------------------------------------------------------
function! asyncrun#runner#xfce#run(opts)
if !executable('xfce4-terminal')
return asyncrun#utils#errmsg('xfce4-terminal executable not find !')
endif
let cmds = []
let cmds += ['cd ' . shellescape(getcwd()) ]
let cmds += [a:opts.cmd]
let cmds += ['echo ""']
let cmds += ['read -n1 -rsp "press any key to continue ..."']
let text = shellescape(join(cmds, ";"))
let command = 'xfce4-terminal -x bash -c ' . text
call system(command . ' &')
endfunction