all repos — dotfiles @ 14b45e3da3c22772c0a8d71567e17f66390eb3c1

my *nix dotfiles

bin/time.sh (view raw)

 1#!/usr/bin/env bash
 2
 3fg="$(xres color15)"
 4light="$(xres color8)"
 5
 6date="%{F$light}time %{F$fg}$(date +%I:%M)"
 7time="%{F$light}date %{F$fg}$(date +"%a, %d %b" | tr A-Z a-z)"
 8
 9while getopts dtn options
10do
11	case $options in
12		d)
13			echo -ne "$date"
14			;;
15		t)
16			echo -ne "$time"
17            ;;
18        n)
19            echo -ne "$(date +"%a, %d %b" | tr A-Z a-z)"
20	esac
21done