mirror of
https://github.com/wlcx/home.git
synced 2026-07-08 13:33:13 +01:00
Compare commits
2 Commits
edcb288716
...
344f52c05b
| Author | SHA1 | Date | |
|---|---|---|---|
| 344f52c05b | |||
| a6a4f5660b |
@ -115,6 +115,10 @@ in
|
||||
serverAliveInterval = 30;
|
||||
serverAliveCountMax = 10;
|
||||
compression = true;
|
||||
controlMaster = "autoask";
|
||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||
# Close socket once last connection closes
|
||||
controlPersist = "no";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@ -41,6 +41,7 @@
|
||||
st = "status";
|
||||
sw = "switch";
|
||||
swc = "switch --create";
|
||||
unp = "log --branches --not --remotes --no-walk --decorate --oneline";
|
||||
|
||||
gone = ''! git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' │ awk '$2 == "[gone]" {print $1}' | xargs -r git branch -D'';
|
||||
};
|
||||
|
||||
@ -19,6 +19,17 @@
|
||||
extraOptions."IdentityAgent" =
|
||||
"~/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
|
||||
};
|
||||
programs.zsh.sessionVariables.SSH_AUTH_SOCK = "$HOME/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
|
||||
programs.zsh.sessionVariables = {
|
||||
SSH_AUTH_SOCK = "$HOME/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
|
||||
# Make connection muxing permission work.
|
||||
# Openssh by default will only use SSH_ASKPASS if it sees DISPLAY/WAYLAND_DISPLAY, so we have to force it
|
||||
SSH_ASKPASS_REQUIRE = "force";
|
||||
# A nice applescript permission dialog
|
||||
SSH_ASKPASS = (pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/theseal/ssh-askpass/refs/heads/master/ssh-askpass";
|
||||
hash= "sha256-bQUuGS3Mb+i4Kt+1mDP203s2W1jlRcpl/7uXA7TUZ+o=";
|
||||
executable = true;
|
||||
});
|
||||
};
|
||||
programs.zsh.initContent = "[ -e /opt/homebrew/bin/brew ] && eval $(/opt/homebrew/bin/brew shellenv)";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user