mirror of
https://github.com/Greensky-gs/timeim.git
synced 2026-07-04 20:14:13 +00:00
Mirror from https://github.com/Greensky-gs/timeim
| assets | ||
| docs | ||
| src | ||
| .gitignore | ||
| makefile | ||
| PKGBUILD | ||
| README.md | ||
Timeim
Time, but improved
Ascii art
I took images from @yuanqing here : https://gist.github.com/yuanqing/ffa2244bd134f911d365, thanks :)
Goal
The goal, since I live in a terminal, is to have a command to nicely display the hour of the day
I also intend to push this to pacman or something, and (maybe) on apt and apt-get
Usage
Since many paremeters are required, I recommend you to edit your ~/.bashrc file (or equivalent), to add this line :
alias timeim="timeim --hours --minutes --seconds --color nuanced", or anything really, experiment and tweak paremeters as you please
Don't forget to run
source ~/.bashrc
From source
- Get the code (
git clone https://github.com/Greensky-gs/timeim && cd timeim) - Install gcc and make if you don't already have them ( common installations :
pacman -S gcc make,apt install gcc make... ) - Compile the projet. Make sure the
srcandassetsfolder are at the same location.
- You can use
sudo make installfor a global installation - You can use
make DATADIR=./assetsfor a local installation, but now your./assetsmust be in the same directory as the executable. You can tweak this path if you want (ie: to an absolute path)
- Execute the code generated in the bin directory : it has a timeim executable file, if everything went fine
- You can also create the man page entry :
make manpage. It might fail if you don't run in sudo, since it will copy the file into/usr/share/man/man1, if so, you can either re-run the command in sudo, or copy the file (./build/timeim.1) into wherever you please
Issues
If you see an issue or an improvement, please let me know ( by creating an issue for instance )