Added getdst()
This commit is contained in:
parent
6a102b46c4
commit
5a9dea79ce
9
.bashrc
9
.bashrc
|
@ -102,3 +102,12 @@ alias nmap='sudo -E nmap'
|
||||||
[[ ! -s /usr/bin/weechat ]] && alias weechat='mosh vps -- tmux attach -dt weechat'
|
[[ ! -s /usr/bin/weechat ]] && alias weechat='mosh vps -- tmux attach -dt weechat'
|
||||||
# If you are thurstylark-vps, connect to the existing tmux session locally
|
# If you are thurstylark-vps, connect to the existing tmux session locally
|
||||||
[[ "$HOSTNAME" = "thurstylark-vps" ]] && alias weechat='tmux attach -dt weechat'
|
[[ "$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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue