Awesome
ls-go-zsh Plugin
ls-go-zsh aliases plugin for zsh.
This plugin defines useful aliases that can be used for ls-go
the moden alternative of ls
.
Installation
This plugin is written with MacOS in mind. but it should work on any unix based OS.
- First, Install ls-go
brew install acarl005/homebrew-formulas/ls-go
- Clone this repository into zsh plugins folder
cd ~/.oh-my-zsh/custom/plugins git clone https://github.com/MohamedElashri/ls-go-zsh
or
cd $ZSH_CUSTOM/plugins/
git clone https://github.com/MohamedElashri/ls-go-zsh
-
Add the plugin to
/.zshrc
You should add
exa-zsh
to the plugin listplugins=(... ls-go-zsh)
-
Restart the terminal session
Usage/Examples
This project contain some useful aliasses that you can run in your terminal that zsh supported like ITerm2
.
You can type in the alias in your terminal. This is a list of available aliasses.
Alias | Command | Help |
---|---|---|
ls | ls-go | replace ls by ls-go and allow all other ls-go arguments |
lsa | ls-go -all | show all including hidden files |
ll | ls-go -l | long, include size, date, owner, and permissions |
llm | ls-go -L | show paths for symlinks |
lls | ls-go -R | show symlinks as relative paths |
lsa | ls-go -S | show statistics |
lx | ls-go -recurse | traverse all dirs recursively |
ls-time | ls-go --time | sort by time |
ls-kind | ls-go --kind | sort by kind |
lS | ls-go -f | show files only |
ordinary ls-go usage
usage: ls-go [<flags>] [<paths>...]
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
-a, --all show hidden files
-b, --bytes include size
-m, --mdate include modification date
-o, --owner include owner and group
-p, --perms include permissions for owner, group, and other
-l, --long include size, date, owner, and permissions
-d, --dirs only show directories
-f, --files only show files
-L, --links show paths for symlinks
-R, --link-rel show symlinks as relative paths if shorter than absolute path
-s, --size sort items by size
-t, --time sort items by time
-k, --kind sort items by extension
-S, --stats show statistics
-i, --icons show folder icon before dirs
-n, --nerd-font show nerd font glyphs before file names
-r, --recurse traverse all dirs recursively
-F, --find=FIND filter items with a regexp
Args:
[<paths>] the files(s) and/or folder(s) to display
Contributing
Contributions are always welcome!
Pull requests are welcome. I will try to they are compatible.
Please make sure to update tests as appropriate.