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