Changed: Terminal bug
This commit is contained in:
		| @@ -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"; | ||||
|   }; | ||||
| } | ||||
| @@ -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 | ||||
|       ''; | ||||
|     }; | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -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"; | ||||
|     }; | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user