Skip to content

Commit

Permalink
Merge pull request holman#239 from caarlos0/ls-fix
Browse files Browse the repository at this point in the history
Fix ls --color when no grc installed on OSX
  • Loading branch information
caarlos0 authored Jul 22, 2016
2 parents c641c7c + e06f106 commit b5afc25
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

## Installation

### Dependencies

First, make sure you have all those things installed:

- `git`: to clone the repo
Expand All @@ -22,6 +24,8 @@ First, make sure you have all those things installed:
- `zsh`: to actually run the dotfiles
- `sudo`: some configs may need that

### Install

Then, run these steps:

```console
Expand All @@ -33,6 +37,17 @@ $ zsh # or just close and open your terminal again.

> All changed files will be backed up with a `.backup` suffix.
### Recommended Software

For OSX, I recommend:

- `grc`: for colorizing stuff (like `ls`);
- iTerm: a better terminal emulator;

For Linux:

- Terminator: a better terminal emulator;

## Further help:

- [Personalize your configs](/docs/PERSONALIZATION.md)
Expand Down
13 changes: 6 additions & 7 deletions system/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
# `brew install coreutils`
if which gls >/dev/null 2>&1; then
alias ls="gls -F --color"
alias l="gls -lAh --color"
alias ll="gls -l --color"
alias la="gls -A --color"
else
elif [ "$(uname -s)" != "Darwin" ]; then
alias ls="ls -F --color"
alias l="ls -lAh --color"
alias ll="ls -l --color"
alias la="ls -A --color"
else
alias ls="ls -F"
fi
alias l="ls -lAh"
alias ll="ls -l"
alias la="ls -A"
alias grep="grep --color=auto"
alias duf="du -sh * | sort -hr"
alias less="less -r"
Expand Down

0 comments on commit b5afc25

Please sign in to comment.