Update .config/fish/conf.d/30-man.fish

Update .config/fish/functions/cpkey.fish
Update .config/packages/archgirlie
This commit is contained in:
punkfairie 2024-09-29 21:32:44 -07:00
parent a95909a424
commit ce2a9538e8
Signed by: punkfairie
GPG key ID: A86AF57F837E320F
3 changed files with 14 additions and 5 deletions

View file

@ -1,5 +1,5 @@
#!/usr/bin/env fish #!/usr/bin/env fish
if command -v nvim &>/dev/null if command -v most &>/dev/null
set -gx MANPAGER "nvim +Man!" set -gx MANPAGER most
end end

View file

@ -1,11 +1,18 @@
#!/usr/bin/env fish #!/usr/bin/env fish
function cpkey -d "Copy the id_ed25519 public key to clipboard, generating the keypair if needed" function cpkey -d "Copy the id_ed25519 public key to clipboard, generating the keypair if needed"
if ! [ -O "~/.ssh/id_ed25519.pub" ] if ! [ -O "$HOME/.ssh/id_ed25519.pub" ]
echo "=> Generating id_ed25519 keypair..." echo "=> Generating id_ed25519 keypair..."
ssh-keygen -f "~/.ssh/id_ed25519" ssh-keygen -f "$HOME/.ssh/id_ed25519"
end end
more "~/.ssh/id_ed25519.pub" | copyq copy - if command -v copyq &>/dev/null
more "$HOME/.ssh/id_ed25519.pub" | copyq copy -
else if command -v pbcopy &>/dev/null
more "$HOME/.ssh/id_ed25519.pub" | pbcopy
else
echo "=> Unsupported OS - please add your copy command to this script :)"
return 1
end
echo "=> Public key copied to clipbard" echo "=> Public key copied to clipbard"
end end

View file

@ -1,3 +1,4 @@
 -> Avoid running yay as root/sudo.
aic94xx-firmware aic94xx-firmware
alsa-utils alsa-utils
amfora amfora
@ -115,6 +116,7 @@ meilisearch
mesa mesa
mods mods
morgen-bin morgen-bin
most
mpc mpc
mpd mpd
mythes-en mythes-en