Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 1.16 KB

File metadata and controls

40 lines (22 loc) · 1.16 KB

Trying to Function

Gist

Use at your own risk. These are functions that at some point or another are useful to me.

Basic Usage

Load the functions by using either a dot . or the source command. More info on bash's source command here

username@host:~$ source bashfunctions.sh

image

Date Time Functions

The date command can be used with +%s (date +%s to get Epoch Time

The seconds since the epoch can then be given to the epochconvert function:

username@host:~$ epochconvert 1579514915

image

Color Info

Get the color codes for your terminal.....Handy for using color in commands or changing PS1

image

TODO

  • Write More Todos!
  • Setup POSIX functions
  • Add some Unit tests (using python)
  • Add some CI