mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-06-20 19:58:47 +02:00
Add custom starship.toml file for user and fix readme!
This commit is contained in:
parent
39077578da
commit
b12dc7a959
@ -84,7 +84,7 @@ nixos-generate-config --show-hardware-config > hardware.nix
|
|||||||
- Run this command:
|
- Run this command:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo nixos-rebuild switch --flake .
|
sudo nixos-rebuild switch --flake .#the-username-you-put-in-the-flake
|
||||||
```
|
```
|
||||||
|
|
||||||
Now when you want to rebuild the configuration you have access to an alias called flake-rebuild that will rebuild the flake based of the flakeDir variable you set in flake.nix!
|
Now when you want to rebuild the configuration you have access to an alias called flake-rebuild that will rebuild the flake based of the flakeDir variable you set in flake.nix!
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
home.file.".base16-themes".source = ./files/base16-themes;
|
home.file.".base16-themes".source = ./files/base16-themes;
|
||||||
home.file.".face".source = ./files/face.jpg;
|
home.file.".face".source = ./files/face.jpg;
|
||||||
home.file.".config/rofi/rofi.jpg".source = ./files/rofi.jpg;
|
home.file.".config/rofi/rofi.jpg".source = ./files/rofi.jpg;
|
||||||
|
home.file.".config/starship.toml".source = ./files/starship.toml;
|
||||||
home.file.".local/share/fonts" = {
|
home.file.".local/share/fonts" = {
|
||||||
source = ./files/fonts;
|
source = ./files/fonts;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
129
config/home/files/starship.toml
Normal file
129
config/home/files/starship.toml
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
format = """
|
||||||
|
[](#3B4252)\
|
||||||
|
$python\
|
||||||
|
$username\
|
||||||
|
[](bg:#434C5E fg:#3B4252)\
|
||||||
|
$directory\
|
||||||
|
[](fg:#434C5E bg:#4C566A)\
|
||||||
|
$git_branch\
|
||||||
|
$git_status\
|
||||||
|
[](fg:#4C566A bg:#86BBD8)\
|
||||||
|
$c\
|
||||||
|
$elixir\
|
||||||
|
$elm\
|
||||||
|
$golang\
|
||||||
|
$haskell\
|
||||||
|
$java\
|
||||||
|
$julia\
|
||||||
|
$nodejs\
|
||||||
|
$nim\
|
||||||
|
$rust\
|
||||||
|
[](fg:#86BBD8 bg:#06969A)\
|
||||||
|
$docker_context\
|
||||||
|
[](fg:#06969A bg:#33658A)\
|
||||||
|
$time\
|
||||||
|
[ ](fg:#33658A)\
|
||||||
|
"""
|
||||||
|
command_timeout = 5000
|
||||||
|
# Disable the blank line at the start of the prompt
|
||||||
|
# add_newline = false
|
||||||
|
|
||||||
|
# You can also replace your username with a neat symbol like to save some space
|
||||||
|
[username]
|
||||||
|
show_always = true
|
||||||
|
style_user = "bg:#3B4252"
|
||||||
|
style_root = "bg:#3B4252"
|
||||||
|
format = '[$user ]($style)'
|
||||||
|
|
||||||
|
[directory]
|
||||||
|
style = "bg:#434C5E"
|
||||||
|
format = "[ $path ]($style)"
|
||||||
|
truncation_length = 3
|
||||||
|
truncation_symbol = "…/"
|
||||||
|
|
||||||
|
# Here is how you can shorten some long paths by text replacement
|
||||||
|
# similar to mapped_locations in Oh My Posh:
|
||||||
|
[directory.substitutions]
|
||||||
|
"Documents" = " "
|
||||||
|
"Downloads" = " "
|
||||||
|
"Music" = " "
|
||||||
|
"Pictures" = " "
|
||||||
|
# Keep in mind that the order matters. For example:
|
||||||
|
# "Important Documents" = " "
|
||||||
|
# will not be replaced, because "Documents" was already substituted before.
|
||||||
|
# So either put "Important Documents" before "Documents" or use the substituted version:
|
||||||
|
# "Important " = " "
|
||||||
|
|
||||||
|
[c]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[docker_context]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#06969A"
|
||||||
|
format = '[ $symbol $context ]($style) $path'
|
||||||
|
|
||||||
|
[elixir]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[elm]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:#4C566A"
|
||||||
|
format = '[ $symbol $branch ]($style)'
|
||||||
|
|
||||||
|
[git_status]
|
||||||
|
style = "bg:#4C566A"
|
||||||
|
format = '[$all_status$ahead_behind ]($style)'
|
||||||
|
|
||||||
|
[golang]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[haskell]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[java]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[julia]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[nodejs]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[nim]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[python]
|
||||||
|
style = "bg:#3B4252"
|
||||||
|
format = '[(\($virtualenv\) )]($style)'
|
||||||
|
|
||||||
|
[rust]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[time]
|
||||||
|
disabled = false
|
||||||
|
time_format = "%R" # Hour:Minute Format
|
||||||
|
style = "bg:#33658A"
|
||||||
|
format = '[ $time ]($style)'
|
@ -5,15 +5,5 @@
|
|||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.starship;
|
package = pkgs.starship;
|
||||||
settings = {
|
|
||||||
add_newline = true;
|
|
||||||
character = {
|
|
||||||
success_symbol = "[➜](bold blue)";
|
|
||||||
error_symbol = "[➜](bold red)";
|
|
||||||
};
|
|
||||||
package = {
|
|
||||||
disabled = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
theKBDLayout = "us";
|
theKBDLayout = "us";
|
||||||
theLCVariables = "en_US.UTF-8";
|
theLCVariables = "en_US.UTF-8";
|
||||||
theTimezone = "America/Chicago";
|
theTimezone = "America/Chicago";
|
||||||
theme = "tokyo-night-storm";
|
theme = "catppuccin-mocha";
|
||||||
browser = "firefox";
|
browser = "firefox";
|
||||||
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git";
|
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git";
|
||||||
wallpaperDir = "/home/${username}/Pictures/Wallpapers";
|
wallpaperDir = "/home/${username}/Pictures/Wallpapers";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user