Giter Club home page Giter Club logo

mycal's Introduction

MyCal - Easily Customizable CLI Calendar

MyCal is a calendar command that is designed to be easy to learn and easily customizable based on the gcal, GNU calendar, command. This command uses certain defaults of mine, namely starting the week on Monday and using the U.S./Alaska holiday calendar, and has default color settings based on my preferences, but color can be easily customized using the -c flag (see below).

Requirements

Installation

  1. Navigate to the directory in which the files are contained.
  2. Type the command ./install.sh
    • Installs to /usr/local/bin
    • Optional: Specify and install path as the first argument to install.sh
  3. You're done! Celebrate! (Or maybe just use the command as necessary.)

Options

  • -c -- color
    • Set a custom color scheme using lowercase color names (red, blue, green, etc.), in the specific order of day highlight color, year highlight color.
    • Accepts: black, red, green, yellow, blue, magenta, cyan, white, and bright_*, where * is any of the previous colors. In short, any acceptable ANSI color names.
  • month, year
    • Display current month or current year (as opposed to entering a number).
  • Any other acceptable gcal options will be automatically passed to the gcal.

mycal's People

Contributors

evan-evone avatar

Watchers

 avatar Evan Keeton avatar

mycal's Issues

Month/Date does not display correctly

GCal, the system on which MyCal is based, allows users to specify a month AND a year, but MyCal does not do such a thing, either displaying only the given month or only the given year:

$ mycal

    November 2018
 Mo Tu We Th Fr Sa Su
           1  2  3  4
  5  6  7  8  9 10 11
 12 13 14 15 16 17 18
 19 20 21 22 23 24 25
 26 27 28 29 30

$ mycal 02 2019

    February 2018
 Mo Tu We Th Fr Sa Su
           1  2  3  4
  5  6  7  8  9 10 11
 12 13 14 15 16 17 18
 19 20 21 22 23 24 25
 26 27 28

$ mycal 02

    February 2018
 Mo Tu We Th Fr Sa Su
           1  2  3  4
  5  6  7  8  9 10 11
 12 13 14 15 16 17 18
 19 20 21 22 23 24 25
 26 27 28

$ mycal 2019


                                  2019


      January                   February                   March
 Mo Tu We Th Fr Sa Su      Mo Tu We Th Fr Sa Su      Mo Tu We Th Fr Sa Su
     1  2  3  4  5  6                   1  2  3                   1  2  3
  7  8  9 10 11 12 13       4  5  6  7  8  9 10       4  5  6  7  8  9 10
 14 15 16 17 18 19 20      11 12 13 14 15 16 17      11 12 13 14 15 16 17
 21 22 23 24 25 26 27      18 19 20 21 22 23 24      18 19 20 21 22 23 24
 28 29 30 31               25 26 27 28               25 26 27 28 29 30 31



       April                      May                       June
 Mo Tu We Th Fr Sa Su      Mo Tu We Th Fr Sa Su      Mo Tu We Th Fr Sa Su
  1  2  3  4  5  6  7             1  2  3  4  5                      1  2
  8  9 10 11 12 13 14       6  7  8  9 10 11 12       3  4  5  6  7  8  9
 15 16 17 18 19 20 21      13 14 15 16 17 18 19      10 11 12 13 14 15 16
 22 23 24 25 26 27 28      20 21 22 23 24 25 26      17 18 19 20 21 22 23
 29 30                     27 28 29 30 31            24 25 26 27 28 29 30



        July                     August                  September
 Mo Tu We Th Fr Sa Su      Mo Tu We Th Fr Sa Su      Mo Tu We Th Fr Sa Su
  1  2  3  4  5  6  7                1  2  3  4                         1
  8  9 10 11 12 13 14       5  6  7  8  9 10 11       2  3  4  5  6  7  8
 15 16 17 18 19 20 21      12 13 14 15 16 17 18       9 10 11 12 13 14 15
 22 23 24 25 26 27 28      19 20 21 22 23 24 25      16 17 18 19 20 21 22
 29 30 31                  26 27 28 29 30 31         23 24 25 26 27 28 29
                                                     30


      October                   November                  December
 Mo Tu We Th Fr Sa Su      Mo Tu We Th Fr Sa Su      Mo Tu We Th Fr Sa Su
     1  2  3  4  5  6                   1  2  3                         1
  7  8  9 10 11 12 13       4  5  6  7  8  9 10       2  3  4  5  6  7  8
 14 15 16 17 18 19 20      11 12 13 14 15 16 17       9 10 11 12 13 14 15
 21 22 23 24 25 26 27      18 19 20 21 22 23 24      16 17 18 19 20 21 22
 28 29 30 31               25 26 27 28 29 30         23 24 25 26 27 28 29
                                                     30 31

I hypthesize that this is due to ineffective argument processing, but I'm not sure what the issue is. I will need to experiment some more to find the source of the problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.