mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Make the shell remember your ssh key
In the video "Setting up a Website ... " Luke talks about not having to type the password every time you ssh into your server. However when you follow the tutorial it prompts the password for the ssh-key every time instead, this line removes that need to ask every time and only once.
This commit is contained in:
parent
eaf4c12ee2
commit
b8a859b613
@ -27,7 +27,8 @@ _comp_options+=(globdots) # Include hidden files.
|
||||
# vi mode
|
||||
bindkey -v
|
||||
export KEYTIMEOUT=1
|
||||
|
||||
# Use keychain to load ssh-agent
|
||||
eval `keychain --eval --quiet --noask --agents ssh id_rsa ~/.ssh/id_rsa`
|
||||
# Use vim keys in tab complete menu:
|
||||
bindkey -M menuselect 'h' vi-backward-char
|
||||
bindkey -M menuselect 'k' vi-up-line-or-history
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user