caem
75b13ac379
With the release of the Nvidia 555 beta drivers and their improvements to the Wayland experience I've finally decided to return to NixOS with Hyprland again after 2 years of running Gentoo and Opensuse Tumbleweed on X11. So this is me committing the work done so far from the last couple of days. Future commits will be more incremental.
18 lines
521 B
Bash
Executable file
18 lines
521 B
Bash
Executable file
#!/usr/bin/env zsh
|
|
|
|
distro=$(cat /etc/os-release | grep -w 'ID=.*' | sed -e 's/ID=//g' | awk '{print $1}')
|
|
case "$distro" in
|
|
"debian") dicon="%F{red}%f" ;;
|
|
"gentoo") dicon="%F{magenta}%f" ;;
|
|
"\"opensuse-tumbleweed\"") dicon="%F{green} %f" ;;
|
|
"nixos") dicon="%F{cyan}%f" ;;
|
|
*) dicon="%F{yellow}[]%f" ;;
|
|
esac
|
|
|
|
setopt prompt_subst
|
|
autoload -Uz vcs_info
|
|
precmd () { vcs_info }
|
|
zstyle ':vcs_info:*' formats ' %F{yellow}(%b)%f'
|
|
|
|
export PS1='$dicon %n@%m %F{green}%~%f$vcs_info_msg_0_> '
|
|
|