mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
edit_command_buffer: use "command" to ignore any functions with the same name
This commit is contained in:
parent
ef53605fa9
commit
321fd74de0
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ function edit_command_buffer --description 'Edit the command buffer in an extern
|
|||
set -l f (mktemp)
|
||||
or return 1
|
||||
if set -q f[1]
|
||||
mv $f $f.fish
|
||||
command mv $f $f.fish
|
||||
set f $f.fish
|
||||
else
|
||||
# We should never execute this block but better to be paranoid.
|
||||
|
@ -11,7 +11,7 @@ function edit_command_buffer --description 'Edit the command buffer in an extern
|
|||
else
|
||||
set f /tmp/fish.$fish_pid.fish
|
||||
end
|
||||
touch $f
|
||||
command touch $f
|
||||
or return 1
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue