mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 02:12:08 +08:00
edit_command_buffer: Use variable-as-command
This commit is contained in:
parent
3253893923
commit
3c6844d4f4
|
@ -18,11 +18,11 @@ function edit_command_buffer --description 'Edit the command buffer in an extern
|
|||
commandline -b >$f
|
||||
if set -q VISUAL
|
||||
__fish_disable_bracketed_paste
|
||||
eval $VISUAL $f
|
||||
$VISUAL $f
|
||||
__fish_enable_bracketed_paste
|
||||
else if set -q EDITOR
|
||||
__fish_disable_bracketed_paste
|
||||
eval $EDITOR $f
|
||||
$EDITOR $f
|
||||
__fish_enable_bracketed_paste
|
||||
else
|
||||
echo
|
||||
|
|
Loading…
Reference in New Issue
Block a user