feat: pbfile fn, update zplug install

This commit is contained in:
2024-05-02 19:12:44 +03:00
parent 3441f50be2
commit a5617dc8df
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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() {