Skip to content

TheJisus28/copydirfn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

copydirfn

copydirfn is a Zsh plugin (Oh My Zsh compatible) to quickly copy file names from a directory to the clipboard.

Requirements

  • Shell: Zsh
  • Framework: Oh My Zsh (recommended for automatic plugin loading)
  • Prompt (optional): fully compatible with Oh My Posh and Starship

Install

git clone https://github.com/TheJisus28/copydirfn.git ~/.oh-my-zsh/custom/plugins/copydirfn

Then add copydirfn to plugins=() in ~/.zshrc and source ~/.zshrc.

Usage

copydirfn [-r] [--ext=ext1,ext2] [directory]
  • -r, --recursive include subdirectories.
  • -e, --ext=ext1,ext2 filter by extensions (no dot, comma-separated).

Examples

copydirfn .                 # copy file names in current dir
copydirfn -r .              # copy file names recursively
copydirfn --ext=txt,md .    # copy only .txt and .md
copydirfn -r --ext=js src   # copy .js recursively under src

Clipboard support

  • Wayland: wl-copy
  • X11: xclip, xsel
  • macOS: pbcopy
  • Windows / WSL: clip.exe, clip, win32yank -i

About

A Zsh plugin to quickly copy file names from a directory to the clipboard.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages