diff --git a/inc/config.h b/inc/config.h index 7320e6a..8fdc988 100644 --- a/inc/config.h +++ b/inc/config.h @@ -55,8 +55,8 @@ const style_t socket_style[ SOCK_STYLE_NUM ] = { style_none }; const uint32_t socket_colour = 0xEEEEEE; #define EXEC_STYLE_NUM ( ( int )1 ) -const style_t exec_style[ EXEC_STYLE_NUM ] = { style_none }; -const uint32_t exec_colour = 0xEEEEEE; +const style_t executable_style[ EXEC_STYLE_NUM ] = { style_bold }; +const uint32_t executable_colour = 0x34AD1F; // files by extension #define MAKE_STYLE_NUM ( ( int )2 ) diff --git a/src/display.c b/src/display.c index 3d14701..23dafc5 100644 --- a/src/display.c +++ b/src/display.c @@ -273,6 +273,12 @@ void set_file_style( const directory_entry_t* const entry ) { if ( !entry ) return; + if ( entry->stats.st_mode & S_IXUSR ) + { + format_set_style( &executable_style[ 0 ], EXEC_STYLE_NUM ); + format_set_colour( executable_colour ); + } + // makefiles and readmes if ( compare_makefile( entry ) ) {