refactor some things, might have broken everything

This commit is contained in:
2026-06-15 02:21:03 +02:00
parent 73e25a00b6
commit 08a5db8508
61 changed files with 1013 additions and 1103 deletions

View File

@ -0,0 +1,40 @@
{ homeDir, ... }:
{
home.shell.enableBashIntegration = true;
home.shellAliases = {
ls= "ls --color=auto";
grep = "grep --color=auto";
vim = "nvim";
vi = "nvim";
clr = "clear";
noidle = "systemctl --user stop hypridle";
};
programs.bash.profileExtra = ''
PATH=$PATH:${homeDir}/.cargo/bin
'';
programs.direnv.enable = true;
programs.direnv.enableBashIntegration = true;
programs.bash = {
enable = true;
historyControl = ["ignoreboth"];
historyIgnore = [ "ls" "cd" "exit" ];
shellOptions = [ "cdspell" "autocd"];
};
programs.bash.bashrcExtra = ''
cd() {
builtin cd "$@"
echo -n "$PWD" > ~/.last_directory
}
if [ -f ~/.last_directory ] && [ -n "$PS1" ];then
echo "going to $(cat ~/.last_directory)"
builtin cd "$(cat ~/.last_directory)"
fi
'';
}