Code Monkey home page Code Monkey logo

fd-zsh's Introduction

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.

Alias Command Help
fd fd --color always Always colorize output by default
fd_details fd --list-details list details
fd_ext fd --extension Filter by file extension, insert after this command
fd_name fd --glob Filter by file name (default: regular expression)
fd_case fd --ignore-case Search hidden files and directories
fd_abs fd --absolute-path Show absolute instead of relative paths
fd_exec fd --exec Execute command for each search result
fd_execlude fd --exclude Exclude files and directories that match the given glob pattern
fd_size fd --size SFilter by file size (insert after this command)
fd_owner fd --owner Filter by file owner (insert user:group after this command)
fd_symbolic fd --follow Follow symbolic links
fd_version fd --version Show version information
fd_help fd --help Show 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.