From 4ed062bf726b79c9070eaf229e373fd603b84e4a Mon Sep 17 00:00:00 2001 From: Chris Coley <chris@codingallnight.com> Date: Wed, 14 Oct 2015 16:42:50 -0700 Subject: [PATCH] Now I see why I put the comment in the alias. Try this. --- bash_aliases | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bash_aliases b/bash_aliases index 21aab2a..d37c633 100644 --- a/bash_aliases +++ b/bash_aliases @@ -59,19 +59,19 @@ alias free='free -ht' ################### # Count the number of files in a directory and its sub-directories -alias count='count' # Count the number of files in a directory and its sub-directories +alias _count='echo "count(): Count the number of files in a directory and its sub-directories"' function count { find $1 -type f | wc -l } # Show a histogram output of commands in history -alias hist='hist' # Show a histogram output of commands in history +alias _hist='echo "hist(): Show a histogram output of commands in history"' function hist { history | awk '{print $2}' | sort -n | uniq -c | sort -n | tail } # Make a directory, then cd into it -alias mcd='mcd' # Make a directory, then cd into it +alias _mcd='echo "mcd(): Make a directory, then cd into it"' function mcd { mkdir -pv $1 cd $1 @@ -79,7 +79,7 @@ function mcd { } # Print a color chart -alias color='color' # Print a color chart +alias _color='echo "color(): Print a color chart"' function color { for x in 0 1 4 5 7 8; do for i in `seq 30 37`; do -- GitLab