Merge branch 'main' of git.meatballhat.com:x/dotfiles
This commit is contained in:
22
zshrc
22
zshrc
@@ -175,26 +175,6 @@ done
|
||||
|
||||
export GPG_TTY=$(tty)
|
||||
|
||||
function dump-ssh-agent() {
|
||||
env | awk '/SSH/ {
|
||||
sub(/=/, "=\"", $1)
|
||||
sub(/$/, "\"", $1)
|
||||
print "export " $1
|
||||
}' | tee ~/.ssh/agent.out
|
||||
}
|
||||
|
||||
function load-ssh-agent() {
|
||||
source ~/.ssh/agent.out
|
||||
}
|
||||
|
||||
function start-ssh-agent() {
|
||||
ssh-agent >~/.ssh/agent.out
|
||||
}
|
||||
|
||||
function setup-ssh-agent() {
|
||||
start-ssh-agent && load-ssh-agent
|
||||
}
|
||||
|
||||
function __maybesource() {
|
||||
if [[ -f "${1}" ]]; then
|
||||
if [[ "${2}" == silent ]]; then
|
||||
@@ -227,8 +207,6 @@ function docker-cleanup() {
|
||||
done
|
||||
}
|
||||
|
||||
load-ssh-agent &>/dev/null
|
||||
|
||||
export NVM_DIR="${HOME}/.nvm"
|
||||
|
||||
__maybesource ~/.zshenv
|
||||
|
Reference in New Issue
Block a user