mirror of
https://github.com/chenasraf/dotfiles.git
synced 2026-05-18 01:29:06 +00:00
feat: pbfile fn, update zplug install
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user