This commit is contained in:
2025-10-14 22:25:25 -05:00
parent 8321e6fe2c
commit e32bdff7a8
2 changed files with 2 additions and 1 deletions

View File

@@ -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}"

View File

@@ -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'