anonfunc
e6f4cd8694
Use vared in zsh instead of read.
...
This change seems to do what you want. It passes ! and \ untouched, it gets history from the shell and it uses the zsh line editor for arrow keys and home/end.
2012-08-27 16:49:39 -07:00
Nathan Broadbent
accbcc5957
git_expand_args => scmb_expand_args
2012-08-15 21:10:46 +12:00
Nathan Broadbent
5e7f49ec7d
Wrap everything in a git function so that zsh can expand any aliases for tab completion
2012-08-13 04:11:09 +12:00
Nathan Broadbent
e7d7b8b2c1
Added even more escaped characters for command line evaluation
2012-08-13 02:52:18 +12:00
Nathan Broadbent
cf37be73d4
add => Added
2012-08-13 01:58:44 +12:00
Nathan Broadbent
79a1132730
Merge pull request #43 from ghthor/master
...
Simplified git add -p alias
2012-08-12 06:34:45 -07:00
Nathan Broadbent
3a507fbd5a
#34 - Increased max changes before falling back to standard git status, from 99 to 150. Also added a explanation message that is shown after the regular git status.
2012-08-13 01:21:23 +12:00
Will Walthall
850be06559
Convert git_add_patch into a simple command
2012-08-12 09:18:02 -04:00
Nathan Broadbent
989b2233b7
_git_expand_args_escaped not needed
2012-08-13 01:00:18 +12:00
Nathan Broadbent
d128fb58d7
Fixed merge conflict resolution functions to handle multiple expanded arguments
2012-08-13 00:58:51 +12:00
Nathan Broadbent
aaf4f5fac5
Use tabs as delimiter so that files with spaces are properly handled. Escape spaces only in exec_git_expand_args, use tabs to split everything else.
2012-08-13 00:22:16 +12:00
Minsu Choi
a8319e187d
avoid "bash:unbound" error when "nounset" option enabled (set -o nounset)
2012-05-09 09:15:01 +09:00
Nathan Broadbent
4fb9123f19
Merge pull request #24 from tylerholien/master
...
Changed usage text to reflect '-' ranges instead of '..' ranges
2012-05-07 21:06:10 -07:00
Nathan Broadbent
b1aba1480b
Replace 'command grep' with '\grep' to break out of aliases
2012-05-08 16:02:20 +12:00
Giuseppe
f9f6da479e
Forgot other command grep
2012-05-02 23:03:26 +02:00
Giuseppe Rota
843a662149
avoid possible aliasing of grep
2012-04-26 00:11:42 +03:00
Tyler Holien
596b370b78
Changed usage text to reflect '-' ranges instead of '..' ranges
2012-04-25 15:01:52 -05:00
Nathan Broadbent
aca96a5e8c
Fix defaut IFS for Ubuntu 11.x
2012-03-08 17:35:03 +08:00
Nathan Broadbent
c5fc3f283f
Wrap token in quotes for zsh
2012-02-29 00:20:57 +08:00
Nathan Broadbent
885d528c35
Fixed local variables for ZSH
2012-02-28 22:39:58 +08:00
Jonathan del Strother
077f22da0b
Don't export 'i' and 'cmd_output' as global vars
2012-02-28 12:42:38 +00:00
Nathan Broadbent
7fd415bbf4
Fixed bug in refactor
2012-01-31 01:15:22 +08:00
Nathan Broadbent
cf31c9a15e
'eval' serves no purpose here either
2012-01-31 01:14:56 +08:00
Nathan Broadbent
7049e7fb64
Fixed git_add_patch_shortcuts
2012-01-31 01:13:00 +08:00
Nathan Broadbent
e82e69f1d9
Replaced 1..3 range syntax with 1-3 (Inspired by holygeek's git-number project - https://github.com/holygeek/git-number )
2012-01-26 10:04:48 +08:00
Nathan Broadbent
0784e99eef
When $arg is a normal string, treat it as shell-quoted. But still treat expanded args as plain strings, otherwise it breaks for filenames with spaces
2011-12-23 11:51:08 +08:00
Nathan Broadbent
d5080aa3d3
Fix printf output to use %s, not %q
2011-12-23 11:47:08 +08:00
Nathan Broadbent
993c9ee9fc
Replaced all occurences of 'local IFS=' with 'IFS= ... unset IFS'. Fixes #12
2011-12-14 13:27:39 +08:00
Jacob Lukas
bfe91e04f0
Fix whitespace
2011-11-09 20:11:24 -08:00
Jacob Lukas
5e507af747
Fix add/remove with spaces/special characters
2011-11-09 20:02:29 -08:00
Will Walthall
456cedb082
Added an alias for 'git add -p'
2011-10-28 08:00:56 -04:00
Nathan Broadbent
421560e9a0
Added debugging output to git_status_shortcuts (enable with scmbDebug=true)
2011-10-21 11:03:18 +08:00
Andrew Lorente
cb8a3a6121
Remove dependency on seq
...
seq is unfortunately not available on OSX. Brackets appear to be fully
shell- and platform-independent.
2011-10-20 13:47:19 -07:00
Andrew Lorente
99e4e9dcda
Fix a typo in a function name
2011-10-20 13:47:10 -07:00
Nathan Broadbent
33fe02982a
Fixed bug when trying to use gc -m "commit message"
2011-10-20 20:27:26 +08:00
Jonathan del Strother
7deb0c7909
Add zsh/shwordsplit compatibility for git_status_shortcuts
...
Necessary so that IFS works as expected
2011-10-20 12:11:08 +01:00
Nathan Broadbent
a4d5006b5a
Removed sed command. I can't remember why it was necessary.
2011-10-20 12:47:32 +08:00
Nathan Broadbent
6c82cc25ed
Made git_show_affected_files cross platform at the expense of colorized revision (for now)
2011-10-20 12:11:59 +08:00
Nathan Broadbent
8700f41ba8
Fixed the previous fix..
2011-10-20 12:05:53 +08:00
Nathan Broadbent
3f37f8f53d
Made status command use grep instead of head & tail
2011-10-20 12:02:54 +08:00
Nathan Broadbent
a66a6d4d3f
Made tail and head commands portable
2011-10-20 08:07:19 +08:00
Nathan Broadbent
d2ebf6bdeb
Clear vars first
2011-10-20 01:27:06 +08:00
Nathan Broadbent
acd8e42ee9
Better shared variable name.
2011-10-18 00:36:36 +08:00
Nathan Broadbent
1dde08e904
more name fixes
2011-10-18 00:21:38 +08:00
Nathan Broadbent
0feae2a46e
Changed project name.
2011-10-18 00:19:16 +08:00
Nathan Broadbent
e634d0c4b5
Initial Commit - moved out of ubuntu_config.
2011-10-18 00:18:17 +08:00