Home

Awesome

fd-zsh Plugin

fd aliases plugin for zsh.

This plugin defines useful aliases that can be used for fd the moden alternative of find.

Installation

This plugin is written with MacOS in mind. but it should work on any unix based OS.

  1. First, Install exa
brew install fd
  1. Clone this repository into zsh plugins folder
     cd ~/.oh-my-zsh/custom/plugins
     git clone https://github.com/MohamedElashri/fd-zsh
    

or

cd $ZSH_CUSTOM/plugins/
git clone https://github.com/MohamedElashri/fd-zsh
  1. Add the plugin to /.zshrc

    You should add fd-zsh to the plugin list

    plugins=(... fd-zsh)

  2. Restart the terminal session

    You can do this via

    source $ZSH/oh-my-zsh.sh
    

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
fdfd --color alwaysAlways colorize output by default
fd_detailsfd --list-detailslist details
fd_extfd --extensionFilter by file extension, insert <extension> after this command
fd_namefd --globFilter by file name (default: regular expression)
fd_casefd --ignore-caseSearch hidden files and directories
fd_absfd --absolute-pathShow absolute instead of relative paths
fd_execfd --execExecute command for each search result
fd_execludefd --excludeExclude files and directories that match the given glob pattern <pattern>
fd_sizefd --sizeSFilter by file size (insert <size> after this command)
fd_ownerfd --ownerFilter by file owner (insert user:group after this command)
fd_symbolicfd --followFollow symbolic links
fd_versionfd --versionShow version information
fd_helpfd --helpShow help message

Contributing

Contributions are always welcome!

Pull requests are welcome. I will test them to make sure they are compatible.

Please make sure to update tests as appropriate.

Authors

License

MIT