Changed: Terminal Config

This commit is contained in:
DerGrumpf 2025-03-25 01:36:37 +01:00
parent deb0815621
commit a322ff3ed7
2 changed files with 35 additions and 4 deletions

31
home/shell/default.nix Normal file
View File

@ -0,0 +1,31 @@
{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,5 +1,9 @@
{ pkgs, ...}:
let
font = "JetBrainsMono Nerd Font";
in
{
# Fix underlying System POSIX bugs
programs.bash = {
@ -14,10 +18,6 @@
programs.fish = {
enable = true;
shellAbbrs = {
ls = "eza";
la = "eza -la";
};
interactiveShellInit = ''
fish_config prompt choose disco
function fish_greeting