Changed: Terminal bug

This commit is contained in:
DerGrumpf 2025-03-25 01:47:28 +01:00
parent 0659912e38
commit 4d29ca7b6d
3 changed files with 33 additions and 71 deletions

View File

@ -1,31 +0,0 @@
{config, ...}: let
d = config.xdg.dataHome;
c = config.xdg.configHome;
cache = config.xdg.cacheHome;
in {
imports = [
./fish.nix
];
# add environment variables
home.sessionVariables = {
# clean up ~
LESSHISTFILE = cache + "/less/history";
LESSKEY = c + "/less/lesskey";
WINEPREFIX = d + "/wine";
# set default applications
EDITOR = "nvim";
BROWSER = "firefox";
TERMINAL = "kitty";
# enable scrolling in git diff
DELTA_PAGER = "less -R";
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
};
home.shellAliases = {
ls = "eza";
};
}

View File

@ -1,31 +0,0 @@
{ pkgs, ...}:
let
font = "JetBrainsMono Nerd Font";
in
{
# Fix underlying System POSIX bugs
/* programs.bash = {
interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
*/
programs.fish = {
enable = true;
interactiveShellInit = ''
fish_config prompt choose disco
function fish_greeting
fastfetch
echo (set_color yellow)(date +%T)(set_color normal) on $hostname
end
'';
};
}

View File

@ -16,6 +16,30 @@
shell = pkgs.fish;
};
programs.fish.enable = true; # Just because...
# Fix underlying System POSIX bugs
programs.bash = {
interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
programs.fish = {
enable = true;
interactiveShellInit = ''
fish_config prompt choose disco
function fish_greeting
fastfetch
echo (set_color yellow)(date +%T)(set_color normal) on $hostname
end
'';
};
home.shellAliases = {
ls = "eza";
};
}