2022-07-22 20:42:05 +00:00
|
|
|
{pkgs, ...}: let
|
|
|
|
inputrc = pkgs.writeText "inputrc" ''
|
|
|
|
set completion-ignore-case on
|
|
|
|
'';
|
|
|
|
in {
|
|
|
|
home-manager.users.buffet = {
|
|
|
|
home.sessionVariables = {
|
|
|
|
INPUTRC = inputrc;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.bash = {
|
|
|
|
enable = true;
|
|
|
|
historyControl = ["erasedups" "ignorespace"];
|
|
|
|
|
|
|
|
shellAliases = {
|
|
|
|
"cd.." = "cd ..";
|
2022-10-04 19:53:32 +00:00
|
|
|
ch = "ssh -t irc.buffet.sh -- screen -r weechat";
|
2022-07-22 20:42:05 +00:00
|
|
|
htop = "htop -t";
|
|
|
|
mkdir = "mkdir -p";
|
|
|
|
rg = "rg -S";
|
|
|
|
};
|
|
|
|
|
|
|
|
shellOptions = [
|
|
|
|
"cdspell"
|
|
|
|
"checkjobs"
|
|
|
|
"extglob"
|
|
|
|
"globstar"
|
|
|
|
"histappend"
|
|
|
|
"nocaseglob"
|
|
|
|
];
|
|
|
|
|
|
|
|
initExtra = ''
|
|
|
|
__prompt() {
|
|
|
|
case $? in
|
|
|
|
0) PS1='; ' ;;
|
|
|
|
*) PS1='\[\e[31m\]; \[\e[0m\]' ;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
PROMPT_COMMAND="__prompt"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|