From a5617dc8dfa4bd059e5ff6238f0bf03f834d5e5b Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Thu, 2 May 2024 19:12:44 +0300 Subject: [PATCH] feat: pbfile fn, update zplug install --- install.sh | 2 ++ plugins/functions.plugin.zsh | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 0625741f..0a61e149 100755 --- a/install.sh +++ b/install.sh @@ -170,6 +170,8 @@ src "plugins/functions.plugin.zsh" if [[ $ZPLUG -eq 1 ]]; then echo_yellow "Reloading zplug..." zplug clear + source "$DOTFILES/zplug.init.zsh" + zplug install zplug load --verbose fi diff --git a/plugins/functions.plugin.zsh b/plugins/functions.plugin.zsh index d0a8f6ea..5e0ea0d9 100755 --- a/plugins/functions.plugin.zsh +++ b/plugins/functions.plugin.zsh @@ -366,6 +366,10 @@ get_user_input() { echo $REPLY } +pbfile() { + file="$1" + more $file | pbcopy | echo "=> $file copied to clipboard." +} pubkey_file() { file="$HOME/.ssh/id_casraf.pub" @@ -377,7 +381,7 @@ pubkey_file() { pubkey() { file=$(pubkey_file $1) - more $file | pbcopy | echo "=> Public key copied to pasteboard." + more $file | pbcopy | echo "=> Public key copied to clipboard." } allow-signing() {