Browse Source

moved to fish

dev_01_initial
Heiko Blobner 3 years ago
parent
commit
4876b40295
  1. 11
      home-manager/hblobner_at_devvie.nix
  2. 23
      home-manager/modules/fish.nix
  3. 6
      home-manager/modules/starship.nix

11
home-manager/hblobner_at_devvie.nix

@ -1,15 +1,22 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ ./modules/starship.nix ]; imports = [
./modules/fish.nix
./modules/starship.nix
];
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
# paths it should manage. # paths it should manage.
home.username = "hblobner"; home.username = "hblobner";
home.homeDirectory = "/home/hblobner"; home.homeDirectory = "/home/hblobner";
fonts.fontconfig.enable = true;
# Packages that should be installed to the user profile. # Packages that should be installed to the user profile.
home.packages = with pkgs; [ home.packages = with pkgs; [
alacritty (pkgs.nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
exa
fasd fasd
fd fd
htop htop

23
home-manager/modules/fish.nix

@ -0,0 +1,23 @@
{ config, pkgs, ... }:
{
programs.fish = {
enable = true;
autocd = true;
dotDir = ".config/zsh";
enableAutosuggestions = true;
enableCompletion = true;
defaultKeymap = "viins";
shellAliases = {
"..." = "cd";
sl = "exa";
ls = "exa";
l = "exa -l";
la = "exa -la";
rs = "rsync -a --info=progress2 ";
};
};
}

6
home-manager/modules/starship.nix

@ -3,15 +3,17 @@
{ {
programs.starship = { programs.starship = {
enable = true; enable = true;
enableZshIntegration = true; enableFishIntegration = true;
settings = { settings = {
add_newline = true; add_newline = true;
command_timeout = 10000;
scan_timeout = 10; scan_timeout = 10;
character = { character = {
success_symbol = "[->](bold green)"; success_symbol = "[](bold green)";
}; };
directory = { directory = {

Loading…
Cancel
Save