Added random xkcd script
This commit is contained in:
parent
4a0c72174b
commit
7d9b9ff999
@ -12,6 +12,10 @@ function getkernelpkg() {
|
||||
fi
|
||||
}
|
||||
|
||||
function random-xkcd() {
|
||||
curl $(curl -L https://c.xkcd.com/random/comic/ 2>/dev/null | (echo "https:"$(xmllint --html --xpath 'string(//html/body/div[@id="middleContainer"]/div[@id="comic"]/img/@src)' - 2>/dev/null))) | feh -
|
||||
}
|
||||
|
||||
if [[ $(hostnamectl chassis) == "container" ]]; then
|
||||
DEFAULT_WINDOW_NAME="Container Connection: [ $os_icon $hostname Console ]"
|
||||
elif [[ -z "${SSH_CONNECTION+x}" ]]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user