shell, starship

This commit is contained in:
Sridhar Ratnakumar 2022-04-08 22:09:58 -04:00
parent c0799a3ba2
commit d9706e1dea
5 changed files with 31 additions and 20 deletions

View file

@ -115,13 +115,21 @@
./features/caches/oss.nix
home-manager.darwinModules.home-manager
{
# TODO: Refactor-DRY with Linux's home.nix
home-manager.extraSpecialArgs = { inherit system inputs; };
home-manager.users.srid = { pkgs, ... }: {
imports = [
./home/git.nix
./home/tmux.nix
./home/neovim.nix
./home/starship.nix
];
programs.zsh = {
enable = true;
shellAliases = {
g = "${pkgs.git}/bin/git";
};
};
home.stateVersion = "21.11";
};
}

View file

@ -4,6 +4,8 @@ rec {
inputs.nix-doom-emacs.hmModule
./home/tmux.nix
./home/git.nix
./home/neovim.nix
./home/starship.nix
];
home.packages = with pkgs; [
@ -87,24 +89,6 @@ rec {
};
};
starship =
{
enable = true;
settings = {
username = {
format = "[$user](bold blue) ";
disabled = false;
show_always = true;
};
hostname = {
ssh_only = false;
format = "on [$hostname](bold red) ";
trim_at = ".companyname.com";
disabled = false;
};
};
};
bat.enable = true;
autojump.enable = false;
zoxide.enable = true;

View file

@ -11,7 +11,7 @@
s = "status";
st = "status";
b = "branch";
p = "pull --rebase";
# p = "pull --rebase";
pu = "push";
};
ignores = [ "*~" "*.swp" ];

18
home/starship.nix Normal file
View file

@ -0,0 +1,18 @@
{
programs.starship = {
enable = true;
settings = {
username = {
format = "[$user](bold blue) ";
disabled = false;
show_always = true;
};
hostname = {
ssh_only = false;
format = "on [$hostname](bold red) ";
trim_at = ".companyname.com";
disabled = false;
};
};
};
};

View file

@ -36,6 +36,7 @@
nixpkgs.config.allowBroken = true;
# For home-manager to work.
users.users.srid.name = "srid";
users.users.srid.home = "/Users/srid";
@ -48,7 +49,7 @@
# nix.package = pkgs.nix;
# Create /etc/bashrc that loads the nix-darwin environment.
programs.zsh.enable = true; # default shell on catalina
# programs.zsh.enable = true; # default shell on catalina
# programs.fish.enable = true;
# Used for backwards compatibility, please read the changelog before changing.