Skip to content
This repository was archived by the owner on Jun 8, 2020. It is now read-only.

Commit cee994f

Browse files
committed
--: Added color for socket.
Still need to do LS_COLORS... But this'll do for now.
1 parent ad1e65d commit cee994f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

install

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ depcheck_perl() {
128128
# Attempt to install the module.
129129
printf "${A_ALT_ENTER}"
130130
start "Installing module: ${module}"
131-
PERL_MM_USE_DEFAULT=1 cpan install "$module";
131+
[ -d "${HERE}/.install-logs" ] || mkdir -p "${HERE}/.install-logs"
132+
PERL_MM_USE_DEFAULT=1 cpan install -T "$module" | tee "${HERE}/.install-logs/${module}";
132133

133134
if [ "$?" -ne 0 ]; then
134135
err "Install failed."

src/ls-git.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ sub file_color {
246246
return "\x1B[34m" if ($info->{'kind'}->{'kind'} eq 'directory');
247247
return "\x1B[35m" if ($info->{'kind'}->{'kind'} eq 'symlink');
248248
return "\x1B[33m" if ($info->{'kind'}->{'kind'} eq 'pipe');
249+
return "\x1B[32m" if ($info->{'kind'}->{'kind'} eq 'socket');
249250
return "\x1B[31m" if ($info->{'executable'});
250251
# TODO: More colors.
251252
return '';

0 commit comments

Comments
 (0)