summaryrefslogtreecommitdiff
path: root/nix/programs/starship/default.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-01-23 09:26:51 -0500
committerFreya Murphy <freya@freyacat.org>2025-01-23 09:26:51 -0500
commit1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2 (patch)
treeeecdad132615a4469c22ee6d4ccd1df087b6159d /nix/programs/starship/default.nix
parentuse base16 in neovim and starship (diff)
downloaddotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.tar.gz
dotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.tar.bz2
dotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.zip
reconfigure
Diffstat (limited to 'nix/programs/starship/default.nix')
-rw-r--r--nix/programs/starship/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/nix/programs/starship/default.nix b/nix/programs/starship/default.nix
new file mode 100644
index 0000000..99858d4
--- /dev/null
+++ b/nix/programs/starship/default.nix
@@ -0,0 +1,49 @@
+{ config, lib, ... }:
+
+{
+ home-manager.users.${config.user} = {
+ programs.starship = {
+
+ enable = true;
+
+ settings = {
+ format = lib.concatStrings [
+ "╭─ "
+ "$username"
+ "$hostname"
+ "$git_branch"
+ "$directory"
+ "$line_break"
+ "╰─ "
+ ];
+
+ username = {
+ style_user = "bold cyan";
+ style_root = "bold red";
+ format = "[$user]($style) ";
+ disabled = false;
+ show_always = true;
+ };
+
+ hostname = {
+ ssh_only = false;
+ format = "on [$hostname](bold blue) ";
+ disabled = false;
+ };
+
+ directory = {
+ format = "[$path]($style)[$read_only]($read_only_style) ";
+ truncation_length = -1;
+ truncate_to_repo = false;
+ truncation_symbol = "…/";
+ };
+
+ git_branch = {
+ style = "bold purple";
+ format = "at [$symbol$branch(:$remote_branch)]($style) ";
+ };
+ };
+
+ };
+ };
+}