vercel / vercel/hyper

.profile bash script to load in git keys (git-bash)

Open
#3,170 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

  • [X ] I am on the latest Hyper.app version
  • [X ] I have searched the issues of this repo and believe that this is not a duplicate

Issue

I am using git-bash, and have a bash script to add keys in. It works fine in regular git-bash. It seems like it executes the bash commands and then Hyper terminates as so it is finished. I get the error File or directory not found

#!/bin/bash

#if we can't find an agent, start one, and restart the script.
if [ -z "$SSH_AUTH_SOCK" ] ; then
    exec ssh-agent bash -c "ssh-add ~/gitlab/gitlab ; $0"
    exit
fi

It exists,
https://imgur.com/a/YaSkU6r

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked .hyper.js gist and reproduce the shown bash script in Hyper on Windows 10 using Git Bash. Check why the ssh-agent command ends with “File or directory not found” and Hyper marks the process finished. Done means the script runs in Hyper without terminating and loads the requested key.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, git
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.