dotfiles/zsh/plugins/copydir.plugin.zsh

9 lines
281 B
Bash
Raw Normal View History

2021-12-29 19:14:18 +01:00
# vim:sts=2:sw=2:ft=zsh
# Taken from: https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/copydir/copydir.plugin.zsh
#
# Copies the pathname of the current directory to the system or X Windows clipboard
function copydir {
emulate -L zsh
print -n $PWD | clipcopy
}