1
Fork 0

feat: tmux and fish config and whatnot

This commit is contained in:
Matei Adriel 2022-03-09 02:15:44 +02:00
parent b091a87904
commit 3b0950e88b
6 changed files with 170 additions and 78 deletions
modules/applications/shells

View file

@ -1,18 +1,43 @@
{ pkgs, ... }:
{ lib, pkgs, ... }:
let
shellAliases = import ./aliases.nix;
common = import ./common.nix;
theme = "dangerous";
themePackage = builtins.getAttr theme pkgs.myFishPlugins.themes; # Dynamically pick the theme path
in
{
home-manager.users.adrielus.programs.fish = {
inherit shellAliases;
home-manager.users.adrielus = {
# Source every file in the theme
xdg.configFile."fish/conf.d/plugin-${theme}.fish".text = lib.mkAfter ''
for f in $plugin_dir/*.fish
source $f
end
'';
shellInit = ''
source ${../../../dotfiles/fish/fish.conf}
'' ++ common.shellInit;
programs.fish = {
inherit shellAliases;
plugins = with pkgs; [ myFishPlugins.z myFishPlugins.vi-mode myFishPlugins.themes.agnoster ];
enable = true;
plugins = with pkgs; [
myFishPlugins.z # jump around the file system with ease (might replace with autojump)
themePackage # theme
];
enable = true;
shellInit = ''
source ${../../../dotfiles/fish/config.fish}
# Source the entire oh-my-fish lib
for f in ${pkgs.myFishPlugins.oh-my-fish}/lib/git/**/*.fish
source $f
end
# if [ "${theme}" = "dangerous" ]
set dangerous_colors 000000 333333 666666 ff4ff0 0088ff ff6600 ff0000 ff0033 3300ff 0000ff 00ffff 00ff00
# end
${common.shellInit}
'';
};
};
}