Tony Duckles [Sun, 22 Feb 2015 01:35:17 +0000 (19:35 -0600)]
.bash_profile: Don't run keychain when sudo'ing
Don't re-run keychain when starting a sudo'd shell. When using
Fabric + sudo, this was re-running keychain and borked the
pre-existing ssh-agent job. Use presence of $SUDO_USER to identify
sudo context and prevent re-running keychain.
Tony Duckles [Sat, 3 Jan 2015 23:46:46 +0000 (17:46 -0600)]
.bashrc: Don't include system bashrc, enable more shell options
* The system bashrc (/etc/bashrc) can bring in extra stuff we don't
want, e.g. on work machines. Don't source it anymore.
* Enable additional shell options
Tony Duckles [Sun, 30 Mar 2014 19:26:36 +0000 (14:26 -0500)]
.vim/bundle: Use https:// rather than ssh:// for submodule repo's
Use HTTPS instead of SSH. SSH only works on computers where you have
your public RSA key registered on your Github account. HTTPS is
"anonymous" and will work for any machine.
Tony Duckles [Sun, 25 Aug 2013 21:05:37 +0000 (16:05 -0500)]
.vimrc: Add list-whitespace-chars toggle
Add <leader>ws for toggling list-mode -- showing unprintable chars
like trailing white-space and hard-tabs.
Other changes:
* Use ":set {{flag}}!" syntax for toggling boolean variables rather
than ":set inv{{flag}}" syntax.
* Simplify strip-trailing-whitespace helper.
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.