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 +}