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.
When selecting all, I get the following in my plugins/enabled directory
$ cd ~/.bash_it/plugins/enabled && ls -l
<snip fileinfo> * -> ~/.bash_it/plugins/[^_]available/*
In other words, the regexp is not being expanded, and I don't think bash
has ever had this capability (I am running 4.2.24) . Looking at the commit
24431627ab24c1c97bf3fb5796037e198f465e25, this line was added so as to disable
some plugins starting with a "_". In this circumstance, this line is
wrong anyway as it skips the directory "_available", rather than
available/_whatever.
This commit aims to fix this to the installer's intended purpose.
It also does a sanity check that no file exists already in enabled and
skips otherwise. ln -s does the right thing however more human error
message might be more desirable.