I'm not sure if the 256-color alias introduced in this file is needed.
Not enabled by default but I kept it around because I needed it at some
point in the past...
Signed-off-by: Michael Turquette <mturquette@deferred.io>
New alias for quickly using git filter-branch to add my SoB to a set of
patches. Use like so:
git-sign-off HEAD~3..HEAD
Signed-off-by: Michael Turquette <mturquette@deferred.io>
zzz.aliases.bash introduced a difference alias for 'c', related to
copying Linux kernel binaries to the SD card.
Signed-off-by: Michael Turquette <mturquette@deferred.io>
zdev is just a name that starts with 'z' (for parsing at the end) and
'dev' just means that these aliases have to do with development.
Signed-off-by: Michael Turquette <mturquette@deferred.io>
square is a mix of the existing 'minimal' and 'standard' themes without
any unicode characters that might fail to render in some terminal
emulators.
Signed-off-by: Michael Turquette <mturquette@deferred.io>
It is often desirable to inspect the contents of an archive before
unpacking it. Add a new function, preview-extract, which does this.
preview-extract is a copy-paste of extract(), but the tar commands have
parameter 'x' replaced with 't' to print the pathes of any files in the
archive.
The non-tar lines have been commented out since I rarely use those and
don't know the equivalent parameters off hand. Hopefully a kind soul
will add those in.
Signed-off-by: Michael Turquette <mturquette@deferred.io>
The case block in git.aliases.bash does the right thing for vim users
that do not populate $EDITOR. However vim users that populate $EDITOR
are met with the following error:
$ gd
Vim: Warning: Input is not from a terminal
Vim: Error reading input, exiting...
Vim: preserving files...
Vim: Finished.
Fix this inconsistency by adding another case block in the else block
which handles passing the appropriate arguments to vim.
Signed-off-by: Michael Turquette <mturquette@deferred.io>
This colors the arrow at the start of the second line based on the exit
code of the last command: green for 0, red for non-zero
This functionality currently fails when the 'fasd' plugin is enabled,
since it is messing with the PROMPT_COMMAND function.
* chruby.bash loads chruby
* chruby-auto.bash loads chruby and enables auto-switching
* add chruby_version_prompt() function for displaying ruby version
* inspired by https://gist.github.com/rssvihla/6153455
- This fixes a bug I saw after installing bash-it on Mac OS X 10.6.8.
During bash-it installation I chose not to install any plugins. After
install, when `bash-it enable plugin foo` was complaining that the
enabled directory did not exist.