1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-10 09:20:41 +01:00

refactor(copydir)!: deprecate plugin in favor of copypath

BREAKING CHANGE: the `copydir` plugin is deprecated. Instead of
using `copydir`, use `copypath` which also supports copying
the path of other files or directories specified.
This commit is contained in:
Marc Cornellà
2022-02-22 11:23:14 +01:00
parent 11a23144ad
commit 6f1036293c
2 changed files with 6 additions and 11 deletions

View File

@@ -1,5 +1,7 @@
# Copies the pathname of the current directory to the system or X Windows clipboard
echo ${(%):-'%F{yellow}The `%Bcopydir%b` plugin is deprecated. Use the `%Bcopypath%b` plugin instead.%f'}
source "$ZSH/plugins/copypath/copypath.plugin.zsh"
# TODO: 2022-02-22: Remove deprecated copydir function.
function copydir {
emulate -L zsh
print -n $PWD | clipcopy
copypath
}