diff --git a/bash_aliases b/bash_aliases index 8bceb9754f0bd993fca50389b46e014311ea4c64..6a008881324b80847f43157db9d32a215701c142 100644 --- a/bash_aliases +++ b/bash_aliases @@ -61,33 +61,33 @@ alias free='free -ht' # 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 + find $1 -type f | wc -l } # 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 + history | awk '{print $2}' | sort -n | uniq -c | sort -n | tail } # 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 - pwd + mkdir -pv $1 + cd $1 + pwd } # 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 - for a in `seq 40 47`; do - echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m "; - done; - echo; - done; - done; - echo -e "\e[0m"; + for x in 0 1 4 5 7 8; do + for i in `seq 30 37`; do + for a in `seq 40 47`; do + echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m "; + done; + echo; + done; + done; + echo -e "\e[0m"; } diff --git a/bashrc b/bashrc index 7ff30d94a51d08e578417b9532e986c96f0c92f7..d5592df1ab816ba88bfc52eee3605d73bcfb03a5 100644 --- a/bashrc +++ b/bashrc @@ -40,12 +40,12 @@ force_color_prompt=yes if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then - # We have color support; assume it's compliant with Ecma-48 - # (ISO/IEC-6429). (Lack of such support is extremely rare, and such - # a case would tend to support setf rather than setaf.) - color_prompt=yes + # We have color support; assume it's compliant with Ecma-48 + # (ISO/IEC-6429). (Lack of such support is extremely rare, and such + # a case would tend to support setf rather than setaf.) + color_prompt=yes else - color_prompt= + color_prompt= fi fi