Add current git revision to i3bar and powerline-go prompt
This commit is contained in:
parent
da88d64ebe
commit
c615373955
4 changed files with 13 additions and 5 deletions
|
|
@ -1,4 +1,6 @@
|
|||
{ pkgs, home-manager, ... }: {
|
||||
{ self, pkgs, home-manager, ... }: let
|
||||
rev = builtins.replaceStrings ["-dirty"] ["*"] (toString (self.shortRev or self.dirtyShortRev or self.lastModified or "unknown"));
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
# TODO: Why no work?
|
||||
#nerdfonts
|
||||
|
|
@ -217,7 +219,7 @@
|
|||
|
||||
"module/hostname" = {
|
||||
type = "custom/script";
|
||||
exec = "echo $(uname -n)";
|
||||
exec = "echo $(uname -n)#${rev}";
|
||||
interval = 256;
|
||||
|
||||
format = "<label>";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue