Changed: Terminal Config
This commit is contained in:
parent
deb0815621
commit
a322ff3ed7
31
home/shell/default.nix
Normal file
31
home/shell/default.nix
Normal 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";
|
||||
};
|
||||
}
|
@ -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
|
Loading…
Reference in New Issue
Block a user