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