Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
0da41698
Unverified
Commit
0da41698
authored
Oct 18, 2023
by
Vishal Sharma
Committed by
GitHub
Oct 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ssh-agent): add error message if `~/.ssh` is not found (#11929)
Closes #11829 Co-authored-by:
Carlo Sala
<
carlosalag@protonmail.com
>
parent
8152dc67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ssh-agent.plugin.zsh
plugins/ssh-agent/ssh-agent.plugin.zsh
+5
-0
No files found.
plugins/ssh-agent/ssh-agent.plugin.zsh
View file @
0da41698
...
...
@@ -13,6 +13,11 @@ function _start_agent() {
fi
fi
if
[[
!
-d
"
$HOME
/.ssh"
]]
;
then
echo
"[oh-my-zsh] ssh-agent plugin requires ~/.ssh directory"
return
1
fi
# Set a maximum lifetime for identities added to ssh-agent
local
lifetime
zstyle
-s
:omz:plugins:ssh-agent lifetime lifetime
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment