mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Moved git and shell config into separate modules
This commit is contained in:
parent
1eee403e6c
commit
227070ac48
4 changed files with 60 additions and 60 deletions
32
user/shell/sh.nix
Normal file
32
user/shell/sh.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue