feat: tmux and fish config and whatnot
This commit is contained in:
parent
b091a87904
commit
3b0950e88b
6 changed files with 170 additions and 78 deletions
modules
|
@ -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}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,9 +5,11 @@
|
|||
, nixos-unstable
|
||||
, easy-purescript-nix
|
||||
, easy-dhall-nix
|
||||
, z
|
||||
, fish-plugin-vi-mode
|
||||
, agnoster
|
||||
, fish-plugin-z
|
||||
, fish-theme-harleen
|
||||
, fish-theme-agnoster
|
||||
, fish-theme-dangerous
|
||||
, oh-my-fish
|
||||
, githubNvimTheme
|
||||
, vim-extra-plugins
|
||||
, telescope-file-browser-nvim
|
||||
|
@ -30,25 +32,31 @@ in
|
|||
easy-dhall-nix = self.callPackage easy-dhall-nix { };
|
||||
|
||||
myFishPlugins = {
|
||||
inherit oh-my-fish;
|
||||
|
||||
z = {
|
||||
src = z;
|
||||
src = fish-plugin-z;
|
||||
name = "z";
|
||||
};
|
||||
vi-mode = {
|
||||
src = fish-plugin-vi-mode;
|
||||
name = "vi-mode";
|
||||
};
|
||||
|
||||
themes = {
|
||||
agnoster = {
|
||||
src = agnoster;
|
||||
src = fish-theme-agnoster;
|
||||
name = "agnoster";
|
||||
};
|
||||
|
||||
dangerous = {
|
||||
src = fish-theme-dangerous;
|
||||
name = "dangerous";
|
||||
};
|
||||
|
||||
harleen = {
|
||||
src = fish-theme-harleen;
|
||||
name = "harleen";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
githubNvimTheme = githubNvimTheme;
|
||||
|
||||
# Vim plugins
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue