powerline-go improvements

This commit is contained in:
Geoffrey Frogeye 2024-06-08 19:35:21 +02:00
parent 92ea60bbc8
commit f72112f332
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -3,10 +3,11 @@
config = lib.mkIf config.programs.less.enable {
programs.powerline-go = {
enable = true;
modules = [ "user" "host" "venv" "cwd" "perms" "git" ];
modules = [ "user" "host" "venv" "cwd" "perms" "nix-shell" "git" ];
modulesRight = [ "jobs" "exit" "duration" "load" ];
settings = {
colorize-hostname = true;
hostname-only-if-ssh = true;
max-width = 25;
cwd-max-dir-size = 10;
duration = "$( test -n \"$__TIMER\" && echo $(( $EPOCHREALTIME - $\{__TIMER:-EPOCHREALTIME})) || echo 0 )";
@ -19,3 +20,4 @@
};
};
}
# TODO Replace load with a frobar indicator