first commit
This commit is contained in:
27
glasshouse-desktop/dotfiles/config/starship/flake.lock
generated
Normal file
27
glasshouse-desktop/dotfiles/config/starship/flake.lock
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1726937504,
|
||||
"narHash": "sha256-bvGoiQBvponpZh8ClUcmJ6QnsNKw0EMrCQJARK3bI1c=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "9357f4f23713673f310988025d9dc261c20e70c6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
19
glasshouse-desktop/dotfiles/config/starship/flake.nix
Normal file
19
glasshouse-desktop/dotfiles/config/starship/flake.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
description = "Starship Config";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
packages.${system} = {
|
||||
default = pkgs.starship.overrideAttrs (oldAttrs: {
|
||||
configFile = ./starship.toml;
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
65
glasshouse-desktop/dotfiles/config/starship/starship.toml
Normal file
65
glasshouse-desktop/dotfiles/config/starship/starship.toml
Normal file
@@ -0,0 +1,65 @@
|
||||
add_newline = true
|
||||
|
||||
format = """
|
||||
($username)(bold white)($hostname)
|
||||
($directory)
|
||||
"""
|
||||
|
||||
right_format = """$all"""
|
||||
|
||||
|
||||
[username]
|
||||
disabled = false
|
||||
show_always = true
|
||||
style_user = "bold white"
|
||||
format = "[$user]($style)"
|
||||
|
||||
[hostname]
|
||||
disabled = false
|
||||
ssh_only = true
|
||||
style = "bold white"
|
||||
format = "[@][$hostname]($style)"
|
||||
|
||||
[directory]
|
||||
disabled = false
|
||||
truncation_length = 1
|
||||
home_symbol = "~"
|
||||
format = "[$path](bold cyan)[/](bold green) "
|
||||
|
||||
[character]
|
||||
success_symbol = ""
|
||||
error_symbol = "[](bold red)"
|
||||
|
||||
[git_branch]
|
||||
symbol = " "
|
||||
style = "bold blue"
|
||||
|
||||
[git_commit]
|
||||
commit_hash_length = 4
|
||||
tag_symbol = "🔖 "
|
||||
|
||||
[git_state]
|
||||
format = '[\($state( $progress_current of $progress_total)\)]($style) '
|
||||
cherry_pick = "[🍒 PICKING](bold red)"
|
||||
|
||||
[git_metrics]
|
||||
added_style = "bold blue"
|
||||
format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
|
||||
|
||||
[git_status]
|
||||
format = '([\[$all_status$ahead_behind\]]($style) )'
|
||||
style = "bold cyan"
|
||||
conflicted = "= "
|
||||
ahead = "⇡ ${count} "
|
||||
behind = "⇣ ${count} "
|
||||
diverged = "⇕ "
|
||||
up_to_date = ""
|
||||
untracked = "? "
|
||||
stashed = "$ "
|
||||
modified = "! "
|
||||
staged = '[++\($count\)](green)'
|
||||
renamed = "» "
|
||||
deleted = " "
|
||||
|
||||
[cmd_duration]
|
||||
disabled = true
|
||||
Reference in New Issue
Block a user