Skip to content

Commit

Permalink
add for docker ssh-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-mo-666 committed Jan 23, 2024
1 parent 53ed8c5 commit fa18b8d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 6 additions & 3 deletions _dotfiles/.bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export LDFLAGS="-L/home/linuxbrew/.linuxbrew/opt/openssl@1.1/lib"
export CPPFLAGS="-I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include"
export PKG_CONFIG_PATH="/home/linuxbrew/.linuxbrew/opt/openssl@1.1/lib/pkgconfig"


# ssh-agent for github devcontainer
# https://code.visualstudio.com/remote/advancedcontainers/sharing-git-credentials
if [ -z "$SSH_AUTH_SOCK" ]; then
Expand All @@ -76,12 +77,14 @@ if [ -z "$SSH_AUTH_SOCK" ]; then
ssh-agent -s &> $HOME/.ssh/ssh-agent
fi
eval `cat $HOME/.ssh/ssh-agent`
fi
fi=
# /usr/bin/keychain -q --nogui $HOME/.ssh/id_rsa
# source $HOME/.keychain/$(hostname)-sh

# if running bash
if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
. "$HOME/.bashrc"
fi
fi
3 changes: 3 additions & 0 deletions func_apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ set_apt()
'libxss1'
'libxtst6'
'lsb-release'
'openssh-client'
'socat'
'xdg-utils'
'keychain'
)
sudo apt-get install -y ${installs[@]}
sudo update-locale LANG='ja_JP.UTF-8'
Expand Down

0 comments on commit fa18b8d

Please sign in to comment.