Tweaked zsh module

This commit is contained in:
Tibo De Peuter 2023-03-29 00:11:27 +02:00
parent 4df4b41540
commit 088a9796c6

View file

@ -1,72 +1,67 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
home = { home-manager.users.tdpeuter = { pkgs, ... }: {
packages = with pkgs; [ home = {
font-awesome packages = with pkgs; [
]; font-awesome
file = {
".oh-my-zsh".source = ../../../../stow/zsh/.oh-my-zsh;
};
};
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableSyntaxHighlighting = true;
history = {
expireDuplicatesFirst = true;
extended = true;
};
initExtra = ''
eval "$(direnv hook zsh)"
'';
oh-my-zsh = {
enable = true;
custom = "$HOME/.oh-my-zsh";
plugins = [
"dirhistory"
"git"
"screen"
]; ];
theme = "mrfortem";
file = {
".oh-my-zsh".source = ../../../../stow/zsh/.oh-my-zsh;
};
}; };
plugins = [
{
name = "cmdtime";
src = pkgs.fetchFromGitHub {
owner = "tom-auger";
repo = "cmdtime";
rev = "ffc72641dcfa0ee6666ceb1dc712b61be30a1e8b";
hash = "sha256-v6wCfNoPXDD3sS6yUYE6lre8Ir1yJcLGoAW3O8sUOCg=";
};
}
];
shellAliases = {
cp = "cp -i"; # Confirm before overwriting something
df = "df -h";
free = "free -m";
ll = "ls -la";
np = "nano -w PKGBUILD";
more = "less";
hgrep = "history | grep";
gs = "git status"; programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableSyntaxHighlighting = true;
history = {
expireDuplicatesFirst = true;
extended = true;
};
initExtra = ''
eval "$(direnv hook zsh)"
'';
oh-my-zsh = {
enable = true;
custom = "$HOME/.oh-my-zsh";
plugins = [
"dirhistory"
"git"
"screen"
];
theme = "mrfortem";
};
plugins = [
{
name = "cmdtime";
src = pkgs.fetchFromGitHub {
owner = "tom-auger";
repo = "cmdtime";
rev = "ffc72641dcfa0ee6666ceb1dc712b61be30a1e8b";
hash = "sha256-v6wCfNoPXDD3sS6yUYE6lre8Ir1yJcLGoAW3O8sUOCg=";
};
}
];
shellAliases = {
cp = "cp -i"; # Confirm before overwriting something
df = "df -h";
free = "free -m";
ll = "ls -la";
np = "nano -w PKGBUILD";
more = "less";
hgrep = "history | grep";
update = '' gs = "git status";
pushd ~/projects/sisyphus/nixos
nix flake update update = ''
sudo nixos-rebuild switch --flake .# --show-trace pushd ~/projects/sisyphus/nixos
popd nix flake update
''; sudo nixos-rebuild switch --flake .# --show-trace
uu = "update-user"; popd
update-user = '' '';
pushd ~/projects/sisyphus/nixos };
nix build .#homeManagerConfigurations.tdpeuter.activationPackage
./result/activate
popd
'';
}; };
}; };
} }