Home

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.

  1. First, Install ls-go
brew install acarl005/homebrew-formulas/ls-go
  1. 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
  1. Add the plugin to /.zshrc

    You should add exa-zsh to the plugin list

    plugins=(... ls-go-zsh)

  2. 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.

AliasCommandHelp
lsls-goreplace ls by ls-go and allow all other ls-go arguments
lsals-go -allshow all including hidden files
llls-go -llong, include size, date, owner, and permissions
llmls-go -Lshow paths for symlinks
llsls-go -Rshow symlinks as relative paths
lsals-go -Sshow statistics
lxls-go -recursetraverse all dirs recursively
ls-timels-go --timesort by time
ls-kindls-go --kindsort by kind
lSls-go -fshow 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.

Authors

License

MIT