diff --git a/modules/homelab/motd/default.nix b/modules/homelab/motd/default.nix index ed20b4b..6945c84 100644 --- a/modules/homelab/motd/default.nix +++ b/modules/homelab/motd/default.nix @@ -33,7 +33,7 @@ in { # --- System Info --- default_iface=$(ip route | awk '/default/ {print $5; exit}') ip_addr=$(ip -4 addr show "''${default_iface}" | awk '/inet / {print $2}' | cut -d/ -f1) - nixos_version=$(grep VERSION= /etc/os-release | cut -d'"' -f2) + nixos_version=$(grep '^VERSION=' /etc/os-release | cut -d'"' -f2 | tr -d '\n') kernel_version=$(uname -r) echo -e "''${headings}System Info''${reset}" diff --git a/users/blake/dotfiles/zsh/.zshrc b/users/blake/dotfiles/zsh/.zshrc index b7ae945..f0b54ec 100644 --- a/users/blake/dotfiles/zsh/.zshrc +++ b/users/blake/dotfiles/zsh/.zshrc @@ -65,6 +65,7 @@ alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' # scripts +alias motd='sh /etc/motd' alias rebuild='sh ~/.nix/bin/rebuild.sh' alias perms='sudo sh ~/.nix/bin/perms.sh' alias bb='sudo sh ~/.nix/bin/backup_browse.sh'