Add distro symbol to powerline-go prompt
This commit is contained in:
parent
fd3ebb9498
commit
916595caa3
1 changed files with 25 additions and 1 deletions
|
@ -9,7 +9,31 @@ in {
|
||||||
bashrcExtra = ''
|
bashrcExtra = ''
|
||||||
ssh_with_yubikey () { AGENT_SOCKET=$(ssh $@ gpgconf --list-dirs agent-socket) && ssh -A -R "$AGENT_SOCKET:$(gpgconf --list-dirs agent-socket)" -o "StreamLocalBindUnlink=yes" $@; }
|
ssh_with_yubikey () { AGENT_SOCKET=$(ssh $@ gpgconf --list-dirs agent-socket) && ssh -A -R "$AGENT_SOCKET:$(gpgconf --list-dirs agent-socket)" -o "StreamLocalBindUnlink=yes" $@; }
|
||||||
|
|
||||||
export SYSTEM_GIT_REV=${rev}
|
case "$(sed -n 's|^NAME=||p' /etc/os-release)" in
|
||||||
|
"Alpine Linux")
|
||||||
|
DISTRO_SYMBOL=""
|
||||||
|
;;
|
||||||
|
"Ubuntu")
|
||||||
|
DISTRO_SYMBOL=""
|
||||||
|
;;
|
||||||
|
"NixOS")
|
||||||
|
DISTRO_SYMBOL=""
|
||||||
|
;;
|
||||||
|
"Arch Linux")
|
||||||
|
DISTRO_SYMBOL=""
|
||||||
|
;;
|
||||||
|
"CentOS Linux")
|
||||||
|
DISTRO_SYMBOL=""
|
||||||
|
;;
|
||||||
|
"Fedora")
|
||||||
|
DISTRO_SYMBOL=""
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
DISTRO_SYMBOL=""
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
export SYSTEM_GIT_REV="$DISTRO_SYMBOL ${rev}"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue