mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-06 02:01:30 +08:00
Remove file size for executables in the pager, and call them commands
This commit is contained in:
parent
57995abb03
commit
45de6d167d
@ -487,7 +487,7 @@ static bool wildcard_test_flags_then_complete(const wcstring &filepath, const wc
|
||||
if (expand_flags & expand_flag::gen_descriptions) {
|
||||
desc = file_get_desc(lstat_res, lstat_buf, stat_res, stat_buf, stat_errno);
|
||||
|
||||
if (!is_directory && file_size >= 0) {
|
||||
if (!is_directory && !is_executable && file_size >= 0) {
|
||||
if (!desc.empty()) desc.append(L", ");
|
||||
desc.append(format_size(file_size));
|
||||
}
|
||||
|
@ -10,9 +10,9 @@
|
||||
#include "expand.h"
|
||||
|
||||
/// Description for generic executable.
|
||||
#define COMPLETE_EXEC_DESC _(L"executable")
|
||||
#define COMPLETE_EXEC_DESC _(L"command")
|
||||
/// Description for link to executable.
|
||||
#define COMPLETE_EXEC_LINK_DESC _(L"executable link")
|
||||
#define COMPLETE_EXEC_LINK_DESC _(L"command link")
|
||||
/// Description for character device.
|
||||
#define COMPLETE_CHAR_DESC _(L"char device")
|
||||
/// Description for block device.
|
||||
|
Loading…
x
Reference in New Issue
Block a user