Commit Graph

207 Commits (8f9698bf75ff0f55f112f74ad56f878ea3b564d1)

Author SHA1 Message Date
nirenjan c22b902a90 Add search functionality to note
Also tweak new and edit commands to delete/restore note if the file
is empty.
2013-01-30 19:25:32 -08:00
nirenjan 0ecbe0605d Fix note script for title renaming
Also add a debug print statement for when NOTES_DEBUG is set.
2013-01-30 18:04:21 -08:00
nirenjan 6f48978ef4 Fix note script for title renaming
Also add a debug print statement for when NOTES_DEBUG is set.
2013-01-30 18:04:21 -08:00
nirenjan 5e4648a49e Tweak bashrc.common
Add a function add_to_path so that it can prepend any specified path
to the PATH environment variable, but only if it is not already there.

Don't worry about (re)setting the LS_COLORS environment if it's already
been set by the system bashrc.
2013-01-30 10:27:39 -08:00
nirenjan 13fae1e870 Move bashrc files to their own folder 2013-01-25 09:31:23 -08:00
nirenjan 17e9f45505 Fix title renaming for a new note 2013-01-24 19:27:39 -08:00
nirenjan 76f1a4eff0 Fix title renaming for a new note 2013-01-24 19:27:39 -08:00
nirenjan e2f3a1a7bd Fix note issues
Fix the following issues in note
1.  Always use a combo of lowercase letters, hyphen, underscore and
    numbers for the file name. This is taken from the title and uses sed
    to translate the uppercase letters to lowercase. Unfortunately,
    sed's translation mode doesn't support ranges, so we must use the
    full alphabet.
2.  Add support for displaying version information.
3.  Reformat the help display so it all fits in a single line.
4.  Add checking to ensure that at least one argument is passed to note
    so that the parse_args routine doesn't barf an error with shift.
5.  Remove argument checking in notes_init. It's called only by the init
    function, so there's no need to add a flag to control warnings.
2013-01-23 22:20:06 -08:00
nirenjan 5f04cc0040 Fix note issues
Fix the following issues in note
1.  Always use a combo of lowercase letters, hyphen, underscore and
    numbers for the file name. This is taken from the title and uses sed
    to translate the uppercase letters to lowercase. Unfortunately,
    sed's translation mode doesn't support ranges, so we must use the
    full alphabet.
2.  Add support for displaying version information.
3.  Reformat the help display so it all fits in a single line.
4.  Add checking to ensure that at least one argument is passed to note
    so that the parse_args routine doesn't barf an error with shift.
5.  Remove argument checking in notes_init. It's called only by the init
    function, so there's no need to add a flag to control warnings.
2013-01-23 22:20:06 -08:00
nirenjan a5321078e4 Add note script 2013-01-23 20:58:18 -08:00
nirenjan 7bf597a69d Add note script 2013-01-23 20:58:18 -08:00
nirenjan 91ca8e118f Speed up stardate counter (1 SD = 1 JD) 2013-01-22 16:58:43 -08:00
nirenjan 178ebe4f0e Speed up stardate counter (1 SD = 1 JD) 2013-01-22 16:58:43 -08:00
nirenjan d895aaacc8 Remove bolding for lscolors
This also removes the DOS executables and selects a different file for
bash.lscolors to pass to dircolors.
2013-01-22 15:42:13 -08:00
nirenjan 1aeb1ee7a1 Merge branch 'develop' 2013-01-22 15:28:14 -08:00
nirenjan 37c3073028 Tweak color codes in dircolors 2013-01-22 15:27:10 -08:00
nirenjan 92c27287b8 Ignore COLOR, OPTIONS and EIGHTBIT keywords 2013-01-22 11:22:22 -08:00
nirenjan ff2be1cada Ignore COLOR, OPTIONS and EIGHTBIT keywords 2013-01-22 11:22:22 -08:00
nirenjan f9455044cd Add bashrc.lscolors script
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.
2013-01-22 10:08:45 -08:00
nirenjan adacb2864c Add base dircolors file 2013-01-21 22:40:26 -08:00
nirenjan 26e51adc9f Add script to test dircolors file
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.
2013-01-21 22:09:50 -08:00
nirenjan 91628fe781 Add script to test dircolors file
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.
2013-01-21 22:09:50 -08:00
nirenjan 6560b0050d Delete obsolete scripts 2013-01-21 17:36:07 -08:00
nirenjan 384060f13e Delete obsolete scripts 2013-01-21 17:36:07 -08:00
nirenjan 1f76e13112 Tweak sdate script to print correct Julian date
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.
2013-01-21 16:51:46 -08:00
nirenjan d348aef645 Tweak sdate script to print correct Julian date
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.
2013-01-21 16:51:46 -08:00
nirenjan e6b3a404fa Set Vim to always show tabs 2013-01-21 14:33:01 -08:00
nirenjan aec82d71f9 Add xterm title support to tmux config 2013-01-21 14:27:45 -08:00
nirenjan 27c7871dfd Add script to set Xterm/Tmux pane title 2013-01-21 13:54:57 -08:00
nirenjan 2407365328 Add script to set Xterm/Tmux pane title 2013-01-21 13:54:57 -08:00
nirenjan cb88dd975e Add stardate script based on Julian date 2013-01-21 12:00:38 -08:00
nirenjan a3f0b88de4 Add stardate script based on Julian date 2013-01-21 12:00:38 -08:00
nirenjan e376d0eca1 Add Julian date script based on Unix time 2013-01-21 11:15:51 -08:00
nirenjan e8f11cbf79 Add Julian date script based on Unix time 2013-01-21 11:15:51 -08:00
nirenjan 71e6bff038 Move scripts to separate folder 2013-01-21 11:15:36 -08:00
nirenjan 0cebac58dd Move scripts to separate folder 2013-01-21 11:15:36 -08:00
nirenjan 45d0ffc727 Add Julian Date calculator 2013-01-20 00:02:49 -08:00
nirenjan a03eeb9f45 Use Python stardate calculator 2013-01-18 14:50:46 -08:00
nirenjan a9b9b9ec49 Rename stardate to stardate.pl 2013-01-18 14:50:17 -08:00
nirenjan 8eb278a3d0 Fix { keymap in match-brackets.vim
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.
2013-01-18 14:42:15 -08:00
nirenjan 5c6495c981 Rework long-lines plugin to use colorcolumn
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.
2013-01-18 14:26:14 -08:00
nirenjan 29929266eb Update tmux status with named constants for colors
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
2013-01-16 18:47:34 -08:00
nirenjan aab503c660 Add clear-history binding to tmux.conf 2013-01-16 15:24:28 -08:00
nirenjan 61002f9564 Add zooming capability to tmux.conf 2013-01-16 15:03:39 -08:00
nirenjan 80f475256d Update message colors in tmux configuration 2013-01-15 18:50:29 -08:00
nirenjan 965033c355 Tweak vimrc for nocompat & Pathogen helptags
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.
2013-01-15 17:07:44 -08:00
nirenjan 251ea0b3b8 Update tmux key bindings and enhance formatting
This commit also lists the default key bindings for tmux in the
additional 3 tables (vi-copy, vi-choice, and vi-edit)
2013-01-14 17:55:11 -08:00
nirenjan 78ec4eaf5c Add status bar configuration to tmux.conf
Also rearrange sections so they are more relevant to surrounding sections
2013-01-12 22:35:21 -08:00
nirenjan d08390d4be Add Stardate script
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.
2013-01-11 23:36:58 -08:00
nirenjan e25a665905 Add screenrc file 2013-01-11 23:35:05 -08:00