Merge branch 'main' of git.meatballhat.com:x/dotfiles

This commit is contained in:
2022-04-28 16:24:03 -04:00
6 changed files with 53 additions and 35 deletions

22
zshrc
View File

@@ -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