Add gr alias to cd to root of git repo

This commit is contained in:
Dave Gallant
2022-09-14 11:17:05 -04:00
parent 0a7b4492e3
commit 1aac42a4b2
3 changed files with 12 additions and 10 deletions

18
flake.lock generated
View File

@@ -28,11 +28,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1662759269, "lastModified": 1663099612,
"narHash": "sha256-lt8bAfEZudCQb+MxoNKmenhMTXhu3RCCyLYxU9t5FFk=", "narHash": "sha256-ucokjFDRwCFWbcGiqxz0mfHv82UqwyW7RXY6ZgKSl80=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "9f7fe353b613d0e45d7a5cdbd1f13c96c15803dd", "rev": "60c6bfe322944d04bb38e76b64effcbd01258824",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -62,11 +62,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1662714967, "lastModified": 1663133271,
"narHash": "sha256-IOTq5tAGGmBFj7tQbkcyLE261JUeTUucEE3p0WLZ4qM=", "narHash": "sha256-juBxlETvfMetD/pUFLtdDLQ8BOayxROra8d5Hg6Zg1M=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "1fec8fda86dac5701146c77d5f8a414b14ed1ff6", "rev": "93580fca1000c37e382d7e2c19c78c1c3852482d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -93,11 +93,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1662821606, "lastModified": 1662996720,
"narHash": "sha256-Z9z9iSH+tgJ0iyRcBfEQRwELgjnhpVXsktiWiFe3SuY=", "narHash": "sha256-XvLQ3SuXnDMJMpM1sv1ifPjBuRytiDYhB12H/BNTjgY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "93a0067a9c85c17764f7755947e6ecf52dc47d8a", "rev": "5f326e2a403e1cebaec378e72ceaf5725983376d",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -172,6 +172,7 @@ in {
".." = "cd .."; ".." = "cd ..";
c = "code"; c = "code";
g = "git"; g = "git";
gr = "cd $(git rev-parse --show-toplevel)";
gho = "gh repo view --web >/dev/null"; gho = "gh repo view --web >/dev/null";
grep = "rg --smart-case"; grep = "rg --smart-case";
k = "kubecolor"; k = "kubecolor";

View File

@@ -14,7 +14,8 @@ in {
homebrew = { homebrew = {
enable = true; enable = true;
autoUpdate = false; onActivation.autoUpdate = false;
onActivation.upgrade = false;
global = { global = {
brewfile = true; brewfile = true;
}; };