complete condition command
`test` command to check `$LS_COMMON` argument exists. and merged the next line.pull/1313/head
parent
af1bf11748
commit
212eb6636e
|
|
@ -7,10 +7,9 @@ LS_COMMON="-hG"
|
|||
LS_COMMON="$LS_COMMON --color=auto"
|
||||
LS_COMMON="$LS_COMMON -I NTUSER.DAT\* -I ntuser.dat\*"
|
||||
|
||||
test -n "$LS_COMMON" &&
|
||||
|
||||
# alias
|
||||
alias ls="command ls $LS_COMMON"
|
||||
# setup the main ls alias if we've established common args
|
||||
test -n "$LS_COMMON" && alias ls="command ls $LS_COMMON"
|
||||
alias ll="ls -l"
|
||||
alias la="ls -a"
|
||||
alias lal="ll -a"
|
||||
|
|
|
|||
Loading…
Reference in New Issue