Added getdst()

This commit is contained in:
David Thurstenson 2017-02-17 10:46:46 -06:00
parent 6a102b46c4
commit 5a9dea79ce
1 changed files with 9 additions and 0 deletions

View File

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