Browse Source

Shellcheck fixes.

cray
Mitch Tishmack 11 years ago
parent
commit
4b343adbcf
2 changed files with 8 additions and 2 deletions
  1. +1
    -1
      common/.profile.d/20-functions.sh
  2. +7
    -1
      common/.profile.d/99-alias.sh

+ 1
- 1
common/.profile.d/20-functions.sh View File

@@ -78,5 +78,5 @@ debug()

login_shell()
{
[[ $- == *i* ]]
[ "$-" = "*i*" ]
}

+ 7
- 1
common/.profile.d/99-alias.sh View File

@@ -7,5 +7,11 @@ alias n=noglob
alias l=ls
alias L='ls -dal'
alias cleandir="find . -type f \( -name '*~' -o -name '#*#' -o -name '.*~' -o -name '.#*#' -o -name 'core' -o -name 'dead.letter*' \) | grep -v auto-save-list | xargs -t rm"

# Prefer less for paging duties.
which less > /dev/null 2>&1
[ $? = 0 ] && alias T='less -f +F' || alias T='tail -f'
if [ $? -eq 0 ]; then
alias T="\$(which less) -f +F"
else
alias T="\$(which tail) -f"
fi

Loading…
Cancel
Save