Skip to content

Commit

Permalink
feat: add dircolors
Browse files Browse the repository at this point in the history
  • Loading branch information
icecreammatt committed Jan 28, 2024
1 parent 546633a commit 1f8a3f7
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions modules/shell/starship.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,39 @@
{ config, pkgs, ... }:

{
programs.dircolors.enable = true;
programs.dircolors.enableFishIntegration = true;
programs.dircolors.settings = {
".iso" = "01;31"; # .iso files bold red like .zip and other archives
".gpg" = "01;33"; # .gpg files bold yellow
# Images to non-bold magenta instead of bold magenta like videos
".bmp" = "00;35";
".gif" = "00;35";
".jpeg" = "00;35";
".jpg" = "00;35";
".mjpeg" = "00;35";
".mjpg" = "00;35";
".mng" = "00;35";
".pbm" = "00;35";
".pcx" = "00;35";
".pgm" = "00;35";
".png" = "00;35";
".ppm" = "00;35";
".svg" = "00;35";
".svgz" = "00;35";
".tga" = "00;35";
".tif" = "00;35";
".tiff" = "00;35";
".webp" = "00;35";
".xbm" = "00;35";
".xpm" = "00;35";
};

programs.bash.enable = true;
programs.dircolors.enableBashIntegration = true;
programs.starship.enableBashIntegration = true;
programs.bash.shellAliases = config.programs.fish.shellAliases;

programs.starship.enableFishIntegration = true;
programs.starship.enable = true;
programs.starship.settings = {
Expand Down

0 comments on commit 1f8a3f7

Please sign in to comment.