This file is sourced by .bashrc and exports LSCOLORS (for OS X systems).
If the .dircolors file exists in the user's home directory, then it is
passed to the dircolors utility (if it exists) and the output is
evaluated to configure GNU ls coloring.
This Perl script reads a valid dircolors configuration file and prints
the colorscheme used by 'ls --color' for each file type (and extension).
Error checking is non-existent. The script assumes that your dircolors
file is valid input for the dircolors program.
The existing script was rounding the computed Julian date which was
resulting in the script printing the next day for 12 hours in the day,
i.e., a date of 456314.5 was being printed as 45631.5 (due to the
division by 10 and rounding up by the print statement). Now, the script
computes the number of days since the epoch (JD 2000000) and drops the
fractional portion, so it will print the correct Julian date stardate,
i.e., a date of 456314.5 will be printed correctly as 45631.4.
The { mapping used to open a C-style block, however, it gave several
problems when dealing with Perl code and hashes. This converts it to
simply working as {}, like the ( -> () and [ -> [] mappings.
This will always highlight characters that exceed the 80 character
limit with ErrorMsg, but will also highlight the 81st column, so
the user knows when to break.
Changes to tmux.conf
- Make it easier for users to adjust the colorscheme by using named
constants to store the color names.
- Highlight the active window using additional attributes instead of
a jarring background.
- Enable the aggressive-resize option
- Remove unused key bindings
- Bind L to choose-session
- Allow the escape key to quit the choice window
Also delete the forcing of &t_Co to 16 since under tmux, it
automatically detects the 256 colour mode for solarized and is therefore
no longer necessary.
This script is used across various systems in:
- screen hardstatus line
- tmux status line
The script provides a simplistic Stardate calculator, not based
on any particular methodology of the Star Trek series, but on
a simple calculation based off GMT time.
The firt 2 digits are the number of years since 1970, the next
three digits and the digit after the decimal point indicate the
"stardate" of the year, which is a straightforward multiplication
by ~2.73785 which is 1000 stardates per calendar year which is an
average of 365.25 days.