mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-17 12:27:22 +00:00
Set umask, update aliases, and convert some to binds
This commit is contained in:
parent
517bc5f587
commit
662cf1bcdc
7 changed files with 55 additions and 28 deletions
14
.config/fish/functions/ssh_add.fish
Normal file
14
.config/fish/functions/ssh_add.fish
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
function ssh_add -d 'Shortcut for adding keys to ssh agent'
|
||||
read --prompt-str='e/r/s? ' args
|
||||
|
||||
argparse --max-args 1 's/seedly' 'r/rsa' -- $args
|
||||
|
||||
switch $args
|
||||
case s seedly
|
||||
ssh-add ~/.secrets/seedly_ed25519
|
||||
case r rsa
|
||||
ssh-add ~/.secrets/id_rsa
|
||||
case '*'
|
||||
ssh-add ~/.secrets/id_ed25519
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue