#!/usr/bin/env bash

echo_c() {
  w=$(stty size | cut -d" " -f2) # width of the terminal
  # l=${#1}                              # length of the string
  l=$(echo "$1" | wc -c)                   # length of the string
  printf "%"$((l + (w - l) / 2))"s\n" "$1" # print string padded to proper width (%Ws)
}

echo_c "BORN TO RICE"
echo_c "WORLD IS A FUCK"
echo_c " 鬼神 Rice Em All 1989"
# echo_c "Rice Em All 1989"
echo_c "I am nix man"
echo_c "410,757,864,530 DEAD HAL CLONES"
