feat: some git shortcuts
This commit is contained in:
parent
0b69b7d6c6
commit
5c3a626a25
20
common.nix
20
common.nix
@ -470,6 +470,7 @@ in
|
||||
bash # Compat
|
||||
jetbrains.idea-ultimate # IntelliJ Ultimate
|
||||
jetbrains.idea-community # IntelliJ Community
|
||||
jetbrains.rust-rover # Rust IDE
|
||||
maven # Java Build tool
|
||||
jdk # Java development kit
|
||||
nixfmt-rfc-style # official nix formatter
|
||||
@ -487,6 +488,7 @@ in
|
||||
syntaxHighlighting.enable = true;
|
||||
autocd = true;
|
||||
shellAliases = {
|
||||
g = "git";
|
||||
git-list-untracked = ''git fetch --prune && git branch -r | awk "{print \$1}" | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk "{print \$1}"'';
|
||||
git-remove-untracked = ''git fetch --prune && git branch -r | awk "{print \$1}" | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk "{print \$1}" | xargs git branch -d'';
|
||||
};
|
||||
@ -510,12 +512,17 @@ in
|
||||
userName = "Leon Wilzer";
|
||||
aliases = {
|
||||
ci = "commit";
|
||||
ca = "commit --amend";
|
||||
ri = "rebase -i";
|
||||
co = "checkout";
|
||||
s = "status";
|
||||
undo = "reset --soft 'HEAD^'";
|
||||
a = "add";
|
||||
a = "add -A";
|
||||
p = "push";
|
||||
cl = "clone";
|
||||
c = "clone";
|
||||
cc = ''clone "$(wl-paste)"'';
|
||||
d = "diff";
|
||||
dh = "diff HEAD";
|
||||
};
|
||||
diff-so-fancy = {
|
||||
enable = true;
|
||||
@ -545,6 +552,7 @@ in
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
package = pkgs.opensshWithKerberos;
|
||||
addKeysToAgent = "yes";
|
||||
matchBlocks = {
|
||||
"libre.moe *.libre.moe" = {
|
||||
@ -561,12 +569,14 @@ in
|
||||
};
|
||||
"*.cs.upb.de *.cs.uni-paderborn.de" = {
|
||||
extraOptions = {
|
||||
"GSSAPIAuthentication" = "yes";
|
||||
"GSSAPIDelegateCredentials" = "yes";
|
||||
GSSAPIAuthentication = "yes";
|
||||
GSSAPIDelegateCredentials = "yes";
|
||||
};
|
||||
user = "lwilzer";
|
||||
};
|
||||
"*.cs.upb.de *.cs.uni-paderborn.de,!sshgate.*,!git.*" = lib.hm.dag.entryAfter ["*.cs.upb.de *.cs.uni-paderborn.de"] {
|
||||
"*.cs.upb.de *.cs.uni-paderborn.de,!sshgate.*,!git.*" =
|
||||
lib.hm.dag.entryAfter [ "*.cs.upb.de *.cs.uni-paderborn.de" ]
|
||||
{
|
||||
proxyJump = "sshgate.cs.uni-paderborn.de";
|
||||
};
|
||||
} // config.programs.ssh.customMatchBlocks;
|
||||
|
@ -60,7 +60,7 @@ in
|
||||
DontCheckDefaultBrowser = true;
|
||||
PrimaryPassword = false;
|
||||
OfferToSaveLoginsDefault = false;
|
||||
DisableBuiltinPDFViewer = true;
|
||||
#DisableBuiltinPDFViewer = true;
|
||||
PasswordManagerEnabled = false;
|
||||
DisableMasterPasswordCreation = true;
|
||||
AutofillAddressEnabled = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user