changed cat path
This commit is contained in:
parent
09f22c706c
commit
cd40a655d1
4
motd.sh
4
motd.sh
@ -4,7 +4,7 @@ MOTDPATH="/usr/share/motd" # path to motd folder
|
||||
CACHEFILE="$HOME/.cache/waifu" # to cache waifu state
|
||||
RESOLUTION=256 # resolution of waifu
|
||||
CENTER=true # center motd?
|
||||
LOLCAT=true # use lolcat?
|
||||
LOLCAT=false # use lolcat?
|
||||
UNAMEARG="-sr" # uname arguments
|
||||
UPTIMEARG="--pretty" # uptime arguments
|
||||
tput_cols=$(/usr/bin/tput cols) # terminal columns
|
||||
@ -37,7 +37,7 @@ output() {
|
||||
;;
|
||||
|
||||
3)
|
||||
/usr/bin/cat $MOTDPATH/motd | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx
|
||||
/bin/cat $MOTDPATH/motd | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx
|
||||
uname $UNAMEARG | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx
|
||||
uptime $UPTIMEARG | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user