2021-04-27 18:47:09 -04:00
|
|
|
{ pkgs, config, ... } :
|
|
|
|
let
|
|
|
|
wrapPlugin = { name, pkg }: {
|
|
|
|
inherit name;
|
|
|
|
src = pkg + "/share/zsh/site-functions";
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
|
|
|
|
home.packages = [
|
|
|
|
pkgs.swatch
|
|
|
|
];
|
|
|
|
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
dotDir = ".config/zsh";
|
|
|
|
history = {
|
|
|
|
expireDuplicatesFirst = true;
|
|
|
|
extended = true;
|
|
|
|
ignoreDups = true;
|
|
|
|
share = true;
|
|
|
|
};
|
2021-05-27 21:17:38 -04:00
|
|
|
initExtraBeforeCompInit = ''
|
2021-08-23 06:42:53 -04:00
|
|
|
export PATH=$PATH:'/run/wrappers/bin:/home/thorn/.nix-profile/bin:/etc/profiles/per-user/thorn/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/thorn/.config/zsh/plugins/fast-syntax-highlighting'
|
2021-05-27 21:17:38 -04:00
|
|
|
'';
|
|
|
|
initExtra = ''
|
2021-05-03 04:24:52 -04:00
|
|
|
setopt promptsubst
|
2021-04-27 18:47:09 -04:00
|
|
|
autoload -U colors && colors
|
2021-05-03 04:24:52 -04:00
|
|
|
export PROMPT='%{$fg[white]%}%B$(swatch)%b %{$fg[blue]%}%2~ %{$fg[green]%}%B>%b '
|
2021-04-27 18:47:09 -04:00
|
|
|
'';
|
|
|
|
shellAliases = {
|
|
|
|
nf = "neofetch --gtk2 off --gtk3 off --ascii_bold on";
|
|
|
|
ls = "ls --color";
|
2021-05-31 07:14:29 -04:00
|
|
|
ec = "emacsclient";
|
2021-04-27 18:47:09 -04:00
|
|
|
};
|
|
|
|
plugins = (map wrapPlugin [
|
|
|
|
{ name = "fast-syntax-highlighting";
|
|
|
|
pkg = pkgs.zsh-fast-syntax-highlighting;
|
|
|
|
}
|
|
|
|
]);
|
|
|
|
};
|
|
|
|
programs.dircolors.enableZshIntegration = true;
|
|
|
|
}
|