2024-01-19 03:06:52 +05:30
|
|
|
{ pkgs, ... }:
|
2023-05-14 01:49:11 +05:30
|
|
|
let
|
|
|
|
|
|
|
|
# My shell aliases
|
|
|
|
myAliases = {
|
2023-09-16 20:27:28 +05:30
|
|
|
ls = "eza --icons -l -T -L=1";
|
2023-05-14 01:49:11 +05:30
|
|
|
cat = "bat";
|
|
|
|
htop = "btm";
|
|
|
|
fd = "fd -Lu";
|
|
|
|
w3m = "w3m -no-cookie -v";
|
2023-11-12 21:54:59 +05:30
|
|
|
neofetch = "disfetch";
|
|
|
|
fetch = "disfetch";
|
|
|
|
gitfetch = "onefetch";
|
2023-05-14 01:49:11 +05:30
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
2024-04-28 02:10:33 +05:30
|
|
|
enableAutosuggestions = true;
|
2023-07-28 22:03:53 +05:30
|
|
|
syntaxHighlighting.enable = true;
|
2024-03-23 00:14:34 +05:30
|
|
|
enableCompletion = true;
|
2023-05-14 01:49:11 +05:30
|
|
|
shellAliases = myAliases;
|
2023-05-18 08:04:48 +05:30
|
|
|
initExtra = ''
|
|
|
|
PROMPT=" ◉ %U%F{magenta}%n%f%u@%U%F{blue}%m%f%u:%F{yellow}%~%f
|
|
|
|
%F{green}→%f "
|
2023-05-18 08:12:58 +05:30
|
|
|
RPROMPT="%F{red}▂%f%F{yellow}▄%f%F{green}▆%f%F{cyan}█%f%F{blue}▆%f%F{magenta}▄%f%F{white}▂%f"
|
2023-08-10 18:26:06 +05:30
|
|
|
[ $TERM = "dumb" ] && unsetopt zle && PS1='$ '
|
2023-05-18 08:04:48 +05:30
|
|
|
'';
|
2023-05-14 01:49:11 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
programs.bash = {
|
|
|
|
enable = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
shellAliases = myAliases;
|
|
|
|
};
|
2023-06-11 09:34:03 +05:30
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
2023-11-12 21:54:59 +05:30
|
|
|
disfetch lolcat cowsay onefetch
|
2023-06-11 09:34:03 +05:30
|
|
|
gnugrep gnused
|
2024-01-14 07:31:44 +05:30
|
|
|
bat eza bottom fd bc
|
2023-07-26 23:40:19 +05:30
|
|
|
direnv nix-direnv
|
2023-06-11 09:34:03 +05:30
|
|
|
];
|
2023-07-26 23:40:19 +05:30
|
|
|
|
|
|
|
programs.direnv.enable = true;
|
|
|
|
programs.direnv.enableZshIntegration = true;
|
|
|
|
programs.direnv.nix-direnv.enable = true;
|
2023-05-14 01:49:11 +05:30
|
|
|
}
|