copydir.plugin.zsh 149 B

12345
  1. # Copies the pathname of the current directory to the system or X Windows clipboard
  2. function copydir {
  3. emulate -L zsh
  4. print -n $PWD | clipcopy
  5. }