X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fcopypath%2Fcopypath.plugin.zsh;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fcopypath%2Fcopypath.plugin.zsh;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=8fe0a85f412f7db11f39b6d33ed43e0c171172a6;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/copypath/copypath.plugin.zsh b/stow/oh-my-zsh/.oh-my-zsh/plugins/copypath/copypath.plugin.zsh deleted file mode 100644 index 8fe0a85..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/copypath/copypath.plugin.zsh +++ /dev/null @@ -1,15 +0,0 @@ -# Copies the path of given directory or file to the system or X Windows clipboard. -# Copy current directory if no parameter. -function copypath { - # If no argument passed, use current directory - local file="${1:-.}" - - # If argument is not an absolute path, prepend $PWD - [[ $file = /* ]] || file="$PWD/$file" - - # Copy the absolute path without resolving symlinks - # If clipcopy fails, exit the function with an error - print -n "${file:a}" | clipcopy || return 1 - - echo ${(%):-"%B${file:a}%b copied to clipboard."} -}