mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Make sure .ssh is created
This commit is contained in:
parent
b481acdc0a
commit
0b0fa6c87f
1 changed files with 1 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
local SSH_ENV=$HOME/.ssh/environment-$HOST
|
local SSH_ENV=$HOME/.ssh/environment-$HOST
|
||||||
|
|
||||||
function start_agent {
|
function start_agent {
|
||||||
|
mkdir -m 700 -p $HOME/.ssh
|
||||||
/usr/bin/env ssh-agent | sed 's/^echo/#echo/' > ${SSH_ENV}
|
/usr/bin/env ssh-agent | sed 's/^echo/#echo/' > ${SSH_ENV}
|
||||||
chmod 600 ${SSH_ENV}
|
chmod 600 ${SSH_ENV}
|
||||||
. ${SSH_ENV} > /dev/null
|
. ${SSH_ENV} > /dev/null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue