Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DarrinTisdale/zsh-aliases-exa
zsh plugin adding aliases for the exa command-line tool
https://github.com/DarrinTisdale/zsh-aliases-exa
Last synced: 14 days ago
JSON representation
zsh plugin adding aliases for the exa command-line tool
- Host: GitHub
- URL: https://github.com/DarrinTisdale/zsh-aliases-exa
- Owner: DarrinTisdale
- License: mit
- Created: 2019-04-12T23:39:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-21T08:57:56.000Z (11 months ago)
- Last Synced: 2024-08-01T16:55:45.146Z (3 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 114
- Watchers: 2
- Forks: 33
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zsh-aliases-exa
## Purpose
This zsh plugin enables a number of aliases extending `exa`, the modern replacement for `ls`.
## Use
To use it, you should first install [`exa`](https://the.exa.website). You can do so easily using [Homebrew](https://brew.sh) on the Mac:
```bash
brew install exa
```Next, download this repo into your custom plugins directory. For my installation using [Oh My Zsh](https://ohmyz.sh/), I cloned the repo to `~/.oh-my-zsh/custom/plugins`.
Lastly, add `zsh-aliases-exa` to the plugins array of your zshrc file:
```bash
plugins=(... zsh-aliases-exa)
```Restart your zsh session, and the aliases will be available.
## Aliases
```bash
# general use
alias ls='exa' # ls
alias l='exa -lbF --git' # list, size, type, git
alias ll='exa -lbGF --git' # long list
alias llm='exa -lbGd --git --sort=modified' # long list, modified date sort
alias la='exa -lbhHigUmuSa --time-style=long-iso --git --color-scale' # all list
alias lx='exa -lbhHigUmuSa@ --time-style=long-iso --git --color-scale' # all + extended list# specialty views
alias lS='exa -1' # one column, just names
alias lt='exa --tree --level=2' # tree```
*Note:* the `-d` option removes the display of files, filtering it to only show directories. I cannot identify a time when I want that, so I have not included it.
## Next Steps
* Add in zshrc options to configure options
1. color
2. date format
3. alias profiles
4. including git column
* Create function to configure different profiles of aliases, so that different alias groups can be enabled. For example, one profile may be for replacing `ls`, another may leave those commands alone and use ones based on `exa` only.## Thanks
Big thanks to Oh My Zsh, Homebrew, and Exa for these terrific tools. They have made the command line fun again.
## Contributors
* [Darrin Tisdale](https://github.com/darrintisdale)