mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
44 lines
956 B
Nix
44 lines
956 B
Nix
{ 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;
|
|
initExtra = ''
|
|
PROMPT=" ◉ %U%F{magenta}%n%f%u@%U%F{blue}%m%f%u:%F{yellow}%~%f
|
|
%F{green}→%f "
|
|
RPROMPT="%F{red}▂%f%F{yellow}▄%f%F{green}▆%f%F{cyan}█%f%F{blue}▆%f%F{magenta}▄%f%F{white}▂%f"
|
|
'';
|
|
};
|
|
|
|
programs.bash = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
shellAliases = myAliases;
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
neofetch lolcat cowsay
|
|
gnugrep gnused
|
|
bat exa bottom fd
|
|
direnv nix-direnv
|
|
];
|
|
|
|
programs.direnv.enable = true;
|
|
programs.direnv.enableZshIntegration = true;
|
|
programs.direnv.nix-direnv.enable = true;
|
|
}
|