From 5a9dea79cec800069ce52d457c570493fe91ff21 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Fri, 17 Feb 2017 10:46:46 -0600 Subject: [PATCH] Added getdst() --- .bashrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.bashrc b/.bashrc index d7737f5..1697404 100644 --- a/.bashrc +++ b/.bashrc @@ -102,3 +102,12 @@ alias nmap='sudo -E nmap' [[ ! -s /usr/bin/weechat ]] && alias weechat='mosh vps -- tmux attach -dt weechat' # If you are thurstylark-vps, connect to the existing tmux session locally [[ "$HOSTNAME" = "thurstylark-vps" ]] && alias weechat='tmux attach -dt weechat' + +# Print Dell Service Tag +getdst() { + if [[ "$1" = "-l" ]]; then + printf "http://www.dell.com/support/home/us/en/04/product-support/servicetag/%s\n" "$(getdst)" + else + sudo dmidecode -s system-serial-number + fi +}