feat(homes/rafiq): enable starship prompt in fish shell
This commit is contained in:
parent
9fffa1d295
commit
8eceb81ad9
2 changed files with 23 additions and 28 deletions
|
@ -2,6 +2,7 @@
|
|||
let
|
||||
inherit (builtins) toString;
|
||||
inherit (lib) getExe mkOrder;
|
||||
inherit (lib.strings) concatStrings;
|
||||
screensaverTimeout = toString 100;
|
||||
screensaverCommand = "${getExe pkgs.cbonsai} -S -w 0.1 -L 40 -M 2 -b 2";
|
||||
in
|
||||
|
@ -9,6 +10,28 @@ in
|
|||
home.shell.enableShellIntegration = true;
|
||||
home.sessionVariables.SHELL = "fish";
|
||||
programs.fish.enable = true;
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
format = concatStrings [
|
||||
# First Line
|
||||
## Left Prompt
|
||||
"$hostname$directory"
|
||||
"$fill"
|
||||
## Right Prompt
|
||||
"$all"
|
||||
# Second Line
|
||||
## Left Prompt
|
||||
"$character"
|
||||
];
|
||||
git_branch.format = "[$symbol$branch(:$remote_branch)]($style) ";
|
||||
shlvl.disabled = false;
|
||||
username.disabled = true;
|
||||
fill.symbol = " ";
|
||||
};
|
||||
};
|
||||
# figure out for fish
|
||||
programs.zsh.initContent =
|
||||
mkOrder 1200
|
||||
# zsh
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
inherit (lib.strings) concatStrings;
|
||||
in
|
||||
{
|
||||
programs.starship = {
|
||||
#TODO: enable after switching to fish
|
||||
enable = false;
|
||||
# settings = {
|
||||
# add_newline = false;
|
||||
# format = concatStrings [
|
||||
# # First Line
|
||||
# ## Left Prompt
|
||||
# "$hostname$directory"
|
||||
# "$fill"
|
||||
# ## Right Prompt
|
||||
# "$all"
|
||||
# # Second Line
|
||||
# ## Left Prompt
|
||||
# "$character"
|
||||
# ];
|
||||
# git_branch.format = "[$symbol$branch(:$remote_branch)]($style) ";
|
||||
# shlvl.disabled = false;
|
||||
# username.disabled = true;
|
||||
# fill.symbol = " ";
|
||||
# };
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue