Tom "Ravi" Hale
a580c53004
ls_with_file_shortcuts: print error to STDERR
2018-09-02 11:34:33 +07:00
Tom "Ravi" Hale
a6eeebfa91
shell_shortcuts.sh: remove unnecessary subshell
2018-09-02 11:34:32 +07:00
Tom "Ravi" Hale
86d9d4b189
shell_shortcuts.sh: fix quoting
2018-09-02 11:34:32 +07:00
Tom "Ravi" Hale
a8092bffd9
Clean up ls_with_file_shortcuts() shwordsplit tests
2018-09-02 11:34:32 +07:00
Tom "Ravi" Hale
0b5a29bbd6
Invoke readlink -f in a way which can succeed
2018-09-02 11:34:32 +07:00
Tom "Ravi" Hale
d5c60b2cc5
git_status_shortcuts: don't clobber $IFS
2018-09-01 20:19:57 +07:00
Tom "Ravi" Hale
5f286eaaaa
Quote arrays to avoid splitting by $IFS
2018-09-01 20:14:36 +07:00
Tom "Ravi" Hale
77b1717008
Avoid test with no arguments and unnecessary subshell
2018-08-17 12:49:07 +07:00
Nathan Broadbent
6745822953
Fix IFS issues - have to always unset after use
2017-02-19 20:05:59 +07:00
Nathan Broadbent
d288f3cd74
Fixed bug in __git_alias
2015-05-25 23:01:14 +07:00
Jean Blanchard
349896b0cf
Make ls aliases optional
2015-03-06 09:41:31 +00:00
Test User
65088ce716
Ensure C locale is used when processing command output
...
This change makes sure LC_MESSAGES is set to C whenever command output
is run through grep, sed etc. Otherwise aliasing will fail whenever
localized messages are printed.
This should fix #98 and #64 .
2014-04-08 13:21:16 +03:00
Nathan Broadbent
b224f49850
determine extended regex argument for sed, can be -E or -r ( fix #112 )
2013-10-22 22:28:39 -07:00
Nathan Broadbent
dd10be79e2
Re-wrap functions as functions. Fixes issue with RVM reload (cd wrapper will be overwritten without error)
2013-01-30 22:29:05 +13:00
Nathan Broadbent
5b7a2c4307
Ensure SCM Breeze is loaded after RVM when wrapping the cd command
2013-01-30 12:05:40 +13:00
Nathan Broadbent
9822603e9c
Use sed -E for GNU/BSD compatibile regexs
2012-12-05 22:18:00 +13:00
Nathan Broadbent
963de3b7aa
Handle "aliased to" for OS X Terminal.app ...
2012-11-17 11:45:26 +13:00
Nathan Broadbent
0a797fb620
Provide X-compatible find_binary function that finds a binary for a given command. Works with zsh/bash
2012-11-17 11:41:08 +13:00
Nathan Broadbent
436b0da138
Further ll fixes for escaped spaces and quotes!
2012-10-23 23:34:17 +13:00
Nathan Broadbent
d6730b40c9
Use \033 instead of \e for color codes, which seems to be more widely supported.
2012-10-23 13:44:02 +13:00
Nathan Broadbent
5836617dbf
Fully fixed up ll escaping, added lots of tests
2012-10-23 12:25:28 +13:00
Nathan Broadbent
7c7aedce03
Fixed ruby script to use STDIN, and pipe ll output to script
2012-10-23 10:35:16 +13:00
Nathan Broadbent
647e18e3ef
Merge branch 'master' of git://github.com/g5pw/scm_breeze into g5pw-master
...
Conflicts:
lib/git/shell_shortcuts.sh
2012-10-23 10:22:49 +13:00
Aljaž "g5pw" Srebrnič
905bd3d094
Fix small bug
...
$_ll_command is no longer defined, so the test evaluates to false, failing to include the ls_with_file_shortcuts function.
2012-10-22 19:40:58 +02:00
Aljaž "g5pw" Srebrnič
2bd5d3ea2f
ZSH compatibility fix
...
This fixes ZSH compatibility by ensuring sh_word_split is on.
2012-10-22 19:39:20 +02:00
Aljaž "g5pw" Srebrnič
7e3d7825d2
Test for command type, not architecture
...
This patch modifies the way available commands are tested; If a Mac user installs and uses GNU ls it is correctly detected and used.
the ls_with_file_shortcuts now works on ZSH. It was failing with "command not found" due to parameters passed in $_ll_command which were interpreted as a command name.
2012-10-22 19:37:55 +02:00
Aljaž "g5pw" Srebrnič
bf08619f70
Get rid of escaped quotes
2012-10-22 19:31:13 +02:00
Nathan Broadbent
0f36491613
Fix ll compatibility for zsh & OSX
2012-10-21 12:37:47 +13:00
Nathan Broadbent
adef82a838
export/unset CLICOLOR_FORCE=1 var for ll command
2012-10-21 11:20:59 +13:00
Nathan Broadbent
179d78f4ee
Expand args for ls_with_file_shortcuts - crazy useful! Lets you easily jump into child directories
2012-10-20 09:30:30 +13:00
Nathan Broadbent
6607aec257
Fetch rel_path from ll args and prepend to files before setting env variable shortcuts
2012-10-20 09:26:14 +13:00
Nathan Broadbent
976c1ea704
Add 'll' support for paths with spaces
2012-10-20 08:56:38 +13:00
Nathan Broadbent
6d4d9bde73
Force color for ls -l on OS X
2012-10-16 22:30:41 +13:00
Nathan Broadbent
1d3651904b
Only replace username when preceded by a space
2012-10-15 21:57:24 +13:00
Nathan Broadbent
8a330465b4
Reorganized code, added la alias to show all files
2012-10-14 13:43:22 +13:00
Nathan Broadbent
b7b3272270
Rejustify columns after replacing with user sym with a little ruby golf
2012-10-14 13:37:03 +13:00
Nathan Broadbent
e6ad742cc7
Fallback to default ll if too many files
2012-10-14 13:34:56 +13:00
Nathan Broadbent
9d275560c8
Replace user/group in ll with user symbol, if defined at ~/.user_sym
2012-10-14 10:58:50 +13:00
Nathan Broadbent
fd8369674f
ls -l => ls -lhv
2012-10-14 10:46:06 +13:00
Nathan Broadbent
2b2f8a7c82
Fixed ll
2012-09-30 09:36:38 +13:00
Nathan Broadbent
b9903488c9
Pass args to ll
2012-09-30 01:11:17 +12:00
Nathan Broadbent
3c63cffc45
Fix paths with spaces for 'll' function
2012-08-23 12:23:52 +12:00
Nathan Broadbent
e75041262e
Fixed shell command wrapping to always use the builtin or full path when wrapping an alias
2012-08-23 10:00:13 +12:00
Nathan Broadbent
ae6bb783e9
Fixed 'll' for zsh
2012-08-22 19:46:15 +12:00
Nathan Broadbent
8c868c8583
readlink -f is a lot faster on Linux
2012-08-21 15:01:17 +12:00
Nathan Broadbent
3cebcb3876
Fix zsh variable expansion issue
2012-08-21 14:30:14 +12:00
Nathan Broadbent
fb68e6e470
Added debugging statements to _git_wrap_commands
2012-08-21 14:14:32 +12:00
Nathan Broadbent
552e9fbcb8
Fixed ll for Linux
2012-08-21 13:43:55 +12:00
Nathan Broadbent
d801167ddd
Use perl abs_path instead of readlink -f, since it should work on both OS X and Linux
2012-08-21 13:35:38 +12:00
Nathan Broadbent
4ac4cba757
Support both BSD and GNU ls commands (for OS X and Linux, respectively)
2012-08-21 13:22:03 +12:00