define_yeti_alias halt='sudo shutdown -h now'
define_yeti_alias i=inventory
define_yeti_alias l='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl'
+define_yeti_alias ll='ls_dot_add=-a perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl'
define_yeti_alias ls='ls -HhFC $color_add'
define_yeti_alias lsd='ls -hl'
define_yeti_alias md='mkdir'
require "filename_helper.pl";
-use Env qw($TMP $color_add $TERM);
+use Env qw($TMP $color_add $ls_dot_add $TERM);
local($chewed_line) = "";
local(@arg_list);
@arg_list = &glob_list(@ARGV);
}
+# add parameters to our chewed_line, but skip items if they are flags we don't
+# implement.
foreach $dir (@arg_list) {
if ($dir eq "-al") { next; } # skip ls directives.
if ($dir eq "-l") { next; } # skip ls directives.
# drop the main payload, the list of directory info, but also save that
# info to a file for analysis.
-system("ls -HhlF $color_add $chewed_line");
-system("ls -HhlF $color_add $chewed_line > $temp_file");
+system("ls -HhlF $ls_dot_add $color_add $chewed_line");
+system("ls -HhlF $ls_dot_add $color_add $chewed_line > $temp_file");
# the color_add variable, if defined, will have flags for setting the
# directory listing color scheme.