fin
This commit is contained in:
@@ -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}"
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user