1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00

feat(starship): more concise prompt

This commit is contained in:
Ryan Cao 2023-09-10 12:03:37 +08:00
parent 76c96dbe34
commit 48bd87f26f
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
3 changed files with 17 additions and 3 deletions

6
flake.lock generated
View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1694256509, "lastModified": 1694309228,
"narHash": "sha256-o7m9jxFDF87Hon0ilkvLFKl6yIzRTUyb+ClY2CWpi4I=", "narHash": "sha256-P/8U7OSVw6ChWmRDCpgfP+HqSup2xdk+2OS2S/rlrrI=",
"owner": "ryanccn", "owner": "ryanccn",
"repo": "am", "repo": "am",
"rev": "6c19bb79636388149f66d89561b354d7e23ad2c1", "rev": "cbbfb1adbd7d5ecba9a172193b64c08367265de9",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -9,6 +9,18 @@ _: {
error_symbol = "[](bold red)"; error_symbol = "[](bold red)";
}; };
bun.format = "[$symbol($version )]($style)";
cmd_duration.format = "[$duration]($style) ";
deno.format = "[$symbol($version )]($style)";
docker_context.format = "$symbol$context]($style) ";
git_branch.format = "[$symbol$branch(:$remote_branch)]($style) ";
golang.format = "[$symbol($version )]($style)";
nix_shell.format = "[$symbol$state( \($name\))]($style) ";
nodejs.format = "[$symbol($version )]($style)";
package.format = "[$symbol$version]($style) ";
python.format = "[\${symbol}\${pyenv_prefix}(\${version} )(\($virtualenv\) )]($style)";
rust.format = "[$symbol($version )]($style)";
aws.symbol = " "; aws.symbol = " ";
buf.symbol = " "; buf.symbol = " ";
c.symbol = " "; c.symbol = " ";

View file

@ -18,10 +18,12 @@ in {
extra-substituters = [ extra-substituters = [
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
"https://crane.cachix.org" "https://crane.cachix.org"
"https://cache.garnix.io"
]; ];
extra-trusted-public-keys = [ extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"crane.cachix.org-1:8Scfpmn9w+hGdXH/Q9tTLiYAE/2dnJYRJP7kl80GuRk=" "crane.cachix.org-1:8Scfpmn9w+hGdXH/Q9tTLiYAE/2dnJYRJP7kl80GuRk="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
]; ];
}; };