Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kareefardi committed Jan 13, 2022
1 parent 74062e2 commit f1d44f8
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 3 deletions.
1 change: 0 additions & 1 deletion custom/plugins/auto-color-ls
Submodule auto-color-ls deleted from 843fe1
40 changes: 40 additions & 0 deletions custom/plugins/auto-color-ls/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# auto-color-ls

zsh plugin to automatically `ls` using [colorls](https://github.com/athityakumar/colorls) on `cd`

## installation

### prerequisites

- colorls

```bash
gem install colorls
```

### antigen

```bash
antigen bundle gretzky/auto-color-ls
```

### zplugin

```bash
zplugin load gretzky/auto-color-ls
```

### zgen

```bash
zgen load gretzky/auto-color-ls
```

### oh-my-zsh

Run
```bash
( cd $ZSH_CUSTOM/plugins && git clone https://github.com/gretzky/auto-color-ls )
```

Then add `auto-color-ls` to `plugins=()` in your `.zshrc`
6 changes: 6 additions & 0 deletions custom/plugins/auto-color-ls/auto-color-ls.plugin.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
auto-color-ls() {
emulate -L zsh
colorls --group-directories-first
}

chpwd_functions=(auto-color-ls $chpwd_functions)
2 changes: 1 addition & 1 deletion custom/plugins/zsh-vi-mode
Submodule zsh-vi-mode updated 2 files
+14 −0 README.md
+1 −1 zsh-vi-mode.zsh

0 comments on commit f1d44f8

Please sign in to comment.