From a62114c91f2070c8c8453d117f3d81dc113e41ff Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Mon, 25 Mar 2024 16:43:09 +0530 Subject: dotfile update --- zsh/oh-my-zsh/plugins/copypath/copypath.plugin.zsh | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 zsh/oh-my-zsh/plugins/copypath/copypath.plugin.zsh (limited to 'zsh/oh-my-zsh/plugins/copypath/copypath.plugin.zsh') diff --git a/zsh/oh-my-zsh/plugins/copypath/copypath.plugin.zsh b/zsh/oh-my-zsh/plugins/copypath/copypath.plugin.zsh deleted file mode 100644 index 8fe0a85..0000000 --- a/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."} -} -- cgit v1.2.3-59-g8ed1b