conf2/zsh/.oh-my-zsh/plugins/copydir/copydir.plugin.zsh

6 lines
149 B
Bash
Raw Permalink Normal View History

2019-01-12 15:47:23 +00:00
# Copies the pathname of the current directory to the system or X Windows clipboard
function copydir {
emulate -L zsh
print -n $PWD | clipcopy
}