瀏覽代碼

Shellcheck fixes.

cray
Mitch Tishmack 11 年之前
父節點
當前提交
4b343adbcf
共有 2 個檔案被更改,包括 8 行新增2 行删除
  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 查看文件

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

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

+ 7
- 1
common/.profile.d/99-alias.sh 查看文件

@@ -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…
取消
儲存