mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
head -#number is depricated, replaced with head -n #number
This commit is contained in:
parent
45e911cf6c
commit
d3a329ecf6
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ case `uname -s` in
|
||||||
alias ls="gls -h --color=auto"
|
alias ls="gls -h --color=auto"
|
||||||
else
|
else
|
||||||
# you have a GNU ls, surprise...
|
# you have a GNU ls, surprise...
|
||||||
case `ls --version 2>/dev/null | head -1` in
|
case `ls --version 2>/dev/null | head -n 1` in
|
||||||
*fileutils*|*coreutils*)
|
*fileutils*|*coreutils*)
|
||||||
alias ls="ls -h --color=auto"
|
alias ls="ls -h --color=auto"
|
||||||
;;
|
;;
|
||||||
|
@ -55,7 +55,7 @@ case `uname -s` in
|
||||||
alias grep='ggrep -d skip --color=auto'
|
alias grep='ggrep -d skip --color=auto'
|
||||||
else
|
else
|
||||||
# woah, you have a GNU grep...
|
# woah, you have a GNU grep...
|
||||||
case `grep --version 2>/dev/null | head -1` in
|
case `grep --version 2>/dev/null | head -n 1` in
|
||||||
*GNU*)
|
*GNU*)
|
||||||
alias grep='grep -d skip --color=auto'
|
alias grep='grep -d skip --color=auto'
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue