dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 4f132815fbb59299cee299a59888019cf02a6bca
parent f4742a16057a7b6e6c78c656182bdfc0b71ebe19
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Mon, 10 Feb 2020 12:49:04 +0100

shell: remove duplicate function definition

Former-commit-id: 6078a61867dec77465427405db743fcbcb164ec0
Diffstat:
Mshell/functions | 61-------------------------------------------------------------
1 file changed, 0 insertions(+), 61 deletions(-)

diff --git a/shell/functions b/shell/functions @@ -128,64 +128,3 @@ if [ -f ~/.fzf.zsh ] || [ -f ~/.fzf.bash ]; then } fi -# clipcopy - Copy data to clipboard (from oh-my-zsh) -# Usage: -# <command> | clipcopy - copies stdin to clipboard -# clipcopy <file> - copies a file's contents to clipboard -function clipcopy() { - emulate -L zsh - local file=$1 - if [[ $OSTYPE == darwin* ]]; then - if [[ -z $file ]]; then - pbcopy - else - cat $file | pbcopy - fi - elif [[ $OSTYPE == (cygwin|msys)* ]]; then - if [[ -z $file ]]; then - cat > /dev/clipboard - else - cat $file > /dev/clipboard - fi - else - if (( $+commands[xclip] )); then - if [[ -z $file ]]; then - xclip -in -selection clipboard - else - xclip -in -selection clipboard $file - fi - elif (( $+commands[xsel] )); then - if [[ -z $file ]]; then - xsel --clipboard --input - else - cat "$file" | xsel --clipboard --input - fi - else - print "clipcopy: Platform $OSTYPE not supported or xclip/xsel not installed" >&2 - return 1 - fi - fi -} - -# clippaste - "Paste" data from clipboard to stdout (from oh-my-zsh) -# Usage: -# clippaste - writes clipboard's contents to stdout -# clippaste | <command> - pastes contents and pipes it to another process -# clippaste > <file> - paste contents to a file -function clippaste() { - emulate -L zsh - if [[ $OSTYPE == darwin* ]]; then - pbpaste - elif [[ $OSTYPE == (cygwin|msys)* ]]; then - cat /dev/clipboard - else - if (( $+commands[xclip] )); then - xclip -out -selection clipboard - elif (( $+commands[xsel] )); then - xsel --clipboard --output - else - print "clipcopy: Platform $OSTYPE not supported or xclip/xsel not installed" >&2 - return 1 - fi - fi -}