Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RitchieS/zsh-exa
Small oh-my-zsh plugin to add useful aliases for exa.
https://github.com/RitchieS/zsh-exa
oh-my-zsh-plugin
Last synced: about 2 months ago
JSON representation
Small oh-my-zsh plugin to add useful aliases for exa.
- Host: GitHub
- URL: https://github.com/RitchieS/zsh-exa
- Owner: RitchieS
- License: mit
- Created: 2021-07-20T19:05:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-21T09:03:48.000Z (almost 3 years ago)
- Last Synced: 2024-04-06T14:48:23.552Z (about 2 months ago)
- Topics: oh-my-zsh-plugin
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-zsh-plugins - exa (ritchies) - Adds aliases to make using [exa](https://github.com/ogham/exa.git) easier. (Plugins / ZSH on Windows)
README
# zsh exa plugin
Small zsh plugin to add useful aliases for [exa](https://github.com/ogham/exa).
## What it does
```bash
# Group directories first, show icons, and enable file size color scale
alias ls='exa --group-directories-first --icons --color-scale'
alias lt='exa --tree --level=2 --icons' # Show in tree view
alias l='ls -a' # Short, all files
alias ld='l -D' # Short, only directories
alias ll='ls -lbG --git' # Long, file size prefixes, grid, git status
alias la='ll -a' # Long, all files
alias lC='la --sort=changed' # Long, sort changed
alias lM='la --sort=modified' # Long, sort modified
alias lS='la --sort=size' # Long, sort size
alias lX='la --sort=extension' # Long, sort extension
```## What it needs
- zsh
- exa
- patched font with glyphs## Get it
Install exa, for platform specific [installation instructions check here](https://github.com/ogham/exa#installation).
You will also need a patched font with icons (glyphs).
I recommend using one of the [nerd-fonts](https://github.com/ryanoasis/nerd-fonts).### Oh My Zsh
Clone zsh-exa to your `$ZSH_CUSTOM` plugins directory.
```bash
git clone https://github.com/RitchieS/zsh-exa.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-exa
```Then add zsh-exa to your plugins array in your `.zshrc` file.
```bash
plugins=(.. zsh-exa)
```### Manual install
Clone zsh-exa and add `source /zsh-exa.plugin.zsh` to your `.zshrc` file.
```bash
git clone https://github.com/RitchieS/zsh-exa.git
echo "source `pwd`/zsh-exa/zsh-exa.plugin.zsh" >> ~/.zshrc
```