Commit Graph

24 Commits (c64326cd06df0d7a3266b36d297abecff9c4991e)

Author SHA1 Message Date
nirenjan c64326cd06 Enhance precision in sdate display 2013-02-19 15:00:03 -08:00
nirenjan 1ffb0a9abe Fix beep script to always send ^G 2013-02-19 14:57:30 -08:00
nirenjan 3520ba84b6 Fix smartwd script and update PS1 in bashrc.common 2013-02-14 14:11:12 -08:00
nirenjan 8cf3f6d25b Add smartwd script - WIP 2013-02-14 10:57:42 -08:00
nirenjan 35eb2b8da8 Allow user to pass in grep pattern
This also disables the search by word, so to search only by word
boundaries, surround the pattern by \< and \>
2013-02-11 15:39:15 -08:00
nirenjan aebd58f73d Add git-branch-parent script from git-scripts repo 2013-02-06 21:59:02 -08:00
nirenjan bfb42d3732 Rename commands and add short forms 2013-01-31 15:27:21 -08:00
nirenjan 2675146dea Fix note to use openssl MD5 instead of md5sum 2013-01-31 14:59:23 -08:00
nirenjan ec6b62badc Add beep script
This script evaluates the commands specified on the command line and
sends a beep to the terminal after the command completes execution. In
tmux, this results in the window status bar displaying the beep signal.
2013-01-31 14:52:41 -08:00
nirenjan 2fda4cbad2 Fix check_empty and add show command to note
check_empty for restore was trying to run a git checkout in the current
working directory, instead of in the ~/.notes directory. Fix this issue

note_show uses less to display the contents of the note file.
2013-01-31 13:33:33 -08:00
nirenjan 8d0349f999 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 17e9f45505 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 a5321078e4 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 92c27287b8 Ignore COLOR, OPTIONS and EIGHTBIT keywords 2013-01-22 11:22:22 -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 6560b0050d 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 27c7871dfd 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 e376d0eca1 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