mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-27 03:51:22 -03:00
committed by
Johannes Altmanninger
parent
170c171e85
commit
59f3719e95
@@ -12,7 +12,7 @@ function __fish_edit_command_if_at_cursor --description 'If cursor is at the com
|
||||
or return 1
|
||||
set -l command_path (command -v -- $command)
|
||||
or return 1
|
||||
test -w $command_path
|
||||
test -r $command_path
|
||||
or return 1
|
||||
string match -q 'text/*' (file --brief --mime-type -L -- $command_path)
|
||||
or return 1
|
||||
|
||||
Reference in New Issue
Block a user