Tony Duckles [Wed, 17 Apr 2013 01:36:28 +0000 (20:36 -0500)]
.vim: Use Ctrl-P instead of Command-T
Ctrl-P is a full path fuzzy file, buffer, mru, tag finder for Vim.
It is written in pure Vimscript, as opposed to Command-T which needs
Vim to be compiled with Ruby support.
Tony Duckles [Tue, 9 Apr 2013 22:19:07 +0000 (17:19 -0500)]
bin/svn-wrapper: Misc fixes
* Update the revision-line reg-ex to support the "(no author)" case.
* Update the AWK usage to set 'FS' at run-time rather than using
"awk -F...". It's more encapsulated this way and more easily
extensible down the road.
Tony Duckles [Sun, 31 Mar 2013 23:28:54 +0000 (18:28 -0500)]
bin/svn-wrapper: Add svn-wrapper
Create a wrapper script around SVN:
* Pipe "svn cat/diff/help/log/status ..." output to $PAGER.
* Support color-ified "svn status".
* Support "svn ll" alias.
Tony Duckles [Sat, 23 Mar 2013 23:30:34 +0000 (18:30 -0500)]
.toprc: Setup useful multi-window mode
* Use multiple-window mode by default
* Create useful alternate windows:
1: CPU Usage
2: Memory Usage
3: Swap Usage
4: CPU Time
* Minor tweaks to colors
* .ackrc: Eliminate --text option which is obsolete in ack2.
* .ackrc: Change --type-set options to new-style --type-add options.
* .bashrc: Don't need to use ack-wrapper anymore, at least for now.
Tony Duckles [Sun, 10 Mar 2013 15:49:38 +0000 (10:49 -0500)]
bin/ack-wrapper: Handle STDIN being a pipe
* If STDIN is a pipe ("test ! -t 0") use `cat` to redirect stdin to
stdout and pipe the result to real-ack.
* Switch back to using "command ack" rather than "$(type -P ack").
`type -P` is bash-centric. Try to be /bin/sh compatible.
* Use clear "${VAR}" syntax around all variables, for consistency.
When using "ack needle foo*.txt", the shell will expand that
wildcard and if any of the matching files contain spaces (or other
special chars that need escaping) those won't be passed correctly
to 'ack' when using the old-style "command ack $ackrc $*" calling
method. We need to single-quote wrap any arguments to ensure we
don't need to escape-out any spaces/exclamation/question chars.
Tony Duckles [Thu, 7 Mar 2013 04:54:59 +0000 (22:54 -0600)]
.vimrc: <F7> to toggle spell-check
* Add key-mappings to have <F7> toggle spell-checking.
* Enable spell-checking by default in *.markdown (ft=octopress)
files.
* Use "en_us" dictionary for spell-checking.
Tony Duckles [Sun, 3 Mar 2013 21:59:08 +0000 (15:59 -0600)]
bin/ack-wrapper: Use ack-wrapper
Creating a bridge script for allowing directory-level additional
.ackrc settings but without overriding the default $HOME/.ackrc
settings. This allows for directory/project-specific .ackrc files,
e.g. for project-specific --ignore-dir settings.
Tony Duckles [Sat, 16 Feb 2013 01:33:34 +0000 (19:33 -0600)]
.bashrc: Don't check for $STY in settitle()
Update settitle() to always echo escape sequence regardless of
whether $STY is set. $STY is only set on immediate screen shells;
when ssh'd to remote hosts $STY won't be set there.
Tony Duckles [Thu, 31 Jan 2013 18:40:37 +0000 (12:40 -0600)]
.mintty/colors: More solarized-alt color tweaks
* solarized-alt.sh: Color tweaks. Brighter background color.
Document which colors are the pristine solarized colors.
* default.sh: Sync with mintty defaults.
Tony Duckles [Sun, 27 Jan 2013 16:26:26 +0000 (10:26 -0600)]
bin/colortable: Print a color table of ANSI colors (normal+bright)
* Introduce bin/colortable which prints a grid of all the standard
ANSI colors for each possible foreground + background combo,
including handling for no-background and bright fore+back colors.
* Delete bin/colordump because it wasn't a useful 256 color utility
and I'm not using any 256 color terminals currently.
Tony Duckles [Fri, 25 Jan 2013 05:04:56 +0000 (23:04 -0600)]
.bashrc: Add "settitle" function for setting screen title
Use the "Set Window Title" escape sequences which GNU screen
respects to set the current window title. This could be handy to
write scripts to automagically change the window-title, e.g. when
ssh'ing to a new machine.
Tony Duckles [Fri, 25 Jan 2013 04:55:43 +0000 (22:55 -0600)]
.screenrc: $TERM="screen"
Go back to using TERM=screen for screen sessions. Never ended-up
needing 256-color support, and having TERM=screen allows for writing
scripts that have handling specific to screen-sessions.
Refactor the 'git-subup' (submodule update) script to only
conditionally pull changes from each submodule's origin remote.
"git subup" will just ensure all submodules are checked-out.
"git subup pull" will additionally do a pull on each submodule to
look for updates.
* Use '--recursive' flag for update/sync/foreach subcommands to
update any child submodules of first-level submodules.
* Conditionalize 'git pull' handling only if $1 == "pull".
* Don't assume that "remotes/origin/HEAD" is a valid ref; not all
repo's will have an "origin/HEAD" ref. Instead, just force-update
local "master" branch based on the current checked-out rev, so
that when 'git submodule update --checkout' creates a detached
HEAD we'll update our local 'master' branch to jive with HEAD so
that any later 'git pull' will show all new revisions compared to
the previous HEAD.
Tony Duckles [Mon, 21 Jan 2013 02:23:16 +0000 (20:23 -0600)]
.term_colorpalette: Tweak 'blue' and 'white' colors
* Brighten 'blue' so that it's more readable against dark
backgrounds.
* Darken 'white' so that it's more gray than white:
Black = Black , BrBlack = DarkGrey, White = Gray, BrWhite=White
* Brighten 'black' a wee-wee-bit.
Tony Duckles [Sun, 6 Jan 2013 06:59:51 +0000 (00:59 -0600)]
.vimrc: Color (highlight) tweaks
* Set Visual (visual-block) color to be white-on-green to match ack
and grep color-scheme. Nice and low-contrast-y.
* Tweak guifg/guibg colors for MacVim.
Tony Duckles [Sat, 5 Jan 2013 19:16:04 +0000 (13:16 -0600)]
bin/git-subup: Always checkout origin/HEAD
Some submodule repo's have an origin/HEAD of something other than
"master". Force a checkout of origin/HEAD -> master so that the
later pull will track updates from the repo's default HEAD.
Tony Duckles [Sat, 5 Jan 2013 02:51:54 +0000 (20:51 -0600)]
.vimrc: Custom statusline, lots of new helper mappings
* Custom statusline which includes &fenc, &ff, etc.
* A bunch of neat misc helper leader-based mappings, inspired by
https://github.com/carlhuda/janus.
* Don't jump to last position in gitcommit file.
* Use real tabs (not spaces) for Makefiles
Tony Duckles [Fri, 4 Jan 2013 07:28:59 +0000 (01:28 -0600)]
.inputrc: Add some helper reminds in comments at top
Add some tips about how to use the 'bind' built-in to view the
current readline config and where to look for additional detail
documentation on all these readline bindings.
Tony Duckles [Thu, 3 Jan 2013 02:16:35 +0000 (20:16 -0600)]
.bashrc: Add brew coreutils to $PATH
Need to have GNU-style coreutils installed to keep me sane. By
default all the coreutils will be installed with g* prefix. Need to
add "/usr/local/opt/coreutils/libexec/gnubin" at the start of $PATH
so that the coreutils versions win.
Also, remove Fink handling. Haven't used Fink in years now...
Tony Duckles [Mon, 31 Dec 2012 15:33:23 +0000 (09:33 -0600)]
.vimrc: Ignore errors during Pathogen init
Some of the internal hosts have older versions of VIM, e.g. 6.3 or
6.4, which don't support Pathogen. Suppress any errors doing the
Pathogen initialization to avoid annoying messages when using VIM on
those hosts.
Tony Duckles [Thu, 27 Dec 2012 04:00:40 +0000 (22:00 -0600)]
.gitconfig: No limit on "git ll"
"git ll" alias previously only showed up to 16 log entries. "git ll"
was an unlimited version. Eliminate "git lll" entirely and make "git
ll" unlimited instead.