From 321fd74de057a4cdae49e1b8ac28e25726aac612 Mon Sep 17 00:00:00 2001 From: aca Date: Tue, 17 Aug 2021 11:20:43 +0900 Subject: [PATCH] edit_command_buffer: use "command" to ignore any functions with the same name --- share/functions/edit_command_buffer.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/functions/edit_command_buffer.fish b/share/functions/edit_command_buffer.fish index c888709ef..d31155c8b 100644 --- a/share/functions/edit_command_buffer.fish +++ b/share/functions/edit_command_buffer.fish @@ -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