Moved git and shell config into separate modules

This commit is contained in:
Emmet 2023-05-13 15:19:11 -05:00
parent 1eee403e6c
commit 227070ac48
4 changed files with 60 additions and 60 deletions

32
user/shell/sh.nix Normal file
View file

@ -0,0 +1,32 @@
{ config, pkgs, ... }:
let
# My shell aliases
myAliases = {
ls = "exa --icons -l -T -L=1";
cat = "bat";
htop = "btm";
fd = "fd -Lu";
w3m = "w3m -no-cookie -v";
};
in
{
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
enableSyntaxHighlighting = true;
shellAliases = myAliases;
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
theme = "agnoster";
};
};
programs.bash = {
enable = true;
enableCompletion = true;
shellAliases = myAliases;
};
}