-
ed37aae5b Squashed 'repos/robbyrussell/oh-my-zsh/' changes from 192de6b..8c84342 ... Browse Code »2
8c84342 Merge pull request #4519 from evanandrewrose/master
fe02e02 Fix "be" -> "b" typo in coffee plugin README.md.
fdb0e23 Merge pull request #4507 from WhyEee/fix-no-tput
b3c10b9 Merge pull request #4505 from arvindch/checked-upgrade
e0c9ada Merge pull request #4214 from queria/chuck-linefix
662bdcc Merge pull request #4515 from brianloveswords/safer-install-script
c9d9375 Make install script safer
a7b4c09 Merge pull request #4526 from sachin21/fix_typo
2c8697b [FIX #4525]: Fix typo
8c73eb4 Merge pull request #4419 from apjanke/installer-termcap-hack
45f0a28 Merge pull request #4508 from Superbil/master
56345c2 Merge pull request #4473 from apjanke/5_1_1-bracketed-paste-hack
2c54428 Fixd bug for pyenv plugin
75e619b Fix install.sh/upgrade.sh for tput-less systems
e59e1c8 Check for git before trying to upgrade, as per #4504
aa15eba Merge pull request #4492 from arvindch/tweak-pyenv-plugin
8a362b2 Enable pyenv rehash
8a95ced Init pyenv virtualenvs too
306e3e7 Merge pull request #4459 from Scuilion/update-gradle-commands
b28db6b Merge pull request #4475 from apjanke/diagdump-5.1-fix
30d7a66 Merge pull request #4486 from gfvcastro/alias-rails-server-port-option
b18d386 Add option '--port' to 'rails server' alias.
57c2ac1 Merge pull request #4482 from sachin21/add_an_alias_for_upstream
ff1bd95 Merge pull request #4480 from volcov/master
101758f Merge pull request #4481 from apjanke/autoenv-emerg-fix
7597bf8 Add an alias for upstream
2d0e7fb autoenv: actually source autoenv once located
252078d add alias to sort by version
2522ab4 Merge pull request #4204 from DoctorJellyface/patch-1
0be21f0 Merge pull request #4440 from apjanke/autoenv-homebrew
0144802 Merge pull request #4464 from rchiossi/master
dc06e96 Merge pull request #4254 from apjanke/copyfile-portability
b1173d4 Merge pull request #4418 from Gnouc/master
2459add Merge branch 'master' of github.com:robbyrussell/oh-my-zsh
bb509dd Renaming colored-man to colored-man-pages because it needs to be.
1510e7d Merge pull request #4472 from theavish/master
d15521d diagnostics: fix for reserved-word changes in zsh 5.1
3551745 Disable bracketed-paste-magic in zsh 5.1.1, where it is buggy
a7f0c71 Fix ohmyz.sh link
6b73f5e Ask for confirmation before uninstall
f3fa418 Merge branch 'master' of github.com:robbyrussell/oh-my-zsh
d26549b Removing legacy rails-specific aliases from the Textmate plugin. This is probably best handled as a custom plugin.
62c86f5 Merge pull request #4444 from apjanke/git-extras-compatibility
b6d78df clip*: add xsel support
a954739 Update Gradle Commands
f104d16 Merge pull request #4455 from swvjeff/master
2d9df44 Fix 'ack-grep' bug for non-ubuntu users
920ab07 Merge pull request #4423 from gfvcastro/alias-rake-middleware
bff8868 Merge pull request #4429 from RobLoach/removeatom
867d586 Merge pull request #4445 from wweaver/git-hf-aliases
80179c1 Merge pull request #4453 from uberspot/master
5d24ba4 Merge pull request #3165 from hbin/fix-alias-afind-osx
30c7ef7 Merge pull request #4421 from jcpst/master
bd26498 Merge pull request #4424 from Gutem/patch-1
d7e7ef6 Merge pull request #4427 from xavhan/patch-1
df5e1f9 Add 3 more nmap aliases to nmap plugin
b35d78f Add Git Hubflow aliases
7f2656c git-extras: fix for compatibility with zsh _git
c146853 autoenv: also look in the Homebrew installation location for it
56b747a Merge branch 'autoenv-check' of github.com:kudos/oh-my-zsh into autoenv-homebrew
f9c16f9 Remove broken link and move npmg alias position
a9c8820 Merge pull request #4426 from apjanke/turn-off-3889-by-default
0516a39 Remove Atom plugin
df80081 Add alias for npm global install
4589bc6 completion: turn off the #3889 compfix check by default
1e305e0 Update Simulator's Path to XCode 7.x
3e04cd6 Add 'rake middleware' alias.
5af52fb gulp plugin: missing opening double quote & had unneeded parens on function
52e2aae Merge pull request #4411 from TylerCharlesworth/patch-1
e4fdb08 Merge branch 'master' into copyfile-portability
f94fee5 installer: don't bail on errors in color setup
758195c Encode64 Plugin - Fix wrong `echo` usage
2266368 Update sublime.plugin.zsh
b05ef10 Merge pull request #4121 from apjanke/chucknorris-check-for-fortune
a51a916 Merge pull request #4348 from andybateman/patch-1
9e29103 Merge pull request #4394 from PrestanceDesign/new-git-alias
156fa5f Merge pull request #4396 from TylerCharlesworth/patch-1
4b902d7 Merge pull request #4410 from justVitalius/master
dc3413b Fix print rvm version in amuse theme
b75b0b8 Merge pull request #4333 from mbologna/fedora_plugin
935948c Merge pull request #3646 from apjanke/installer-cygwin-support-3
b5a5bc9 Merge pull request #4337 from iCross/master
f186b62 Merge pull request #4387 from mbologna/fix_git_equal_remote
d47219f Merge pull request #4397 from vidakovic/master
c932eb3 Merge pull request #4385 from Philosoft/patch-1
c076fc0 Merge pull request #4392 from ag4ve/patch-1
4204cfd Merge pull request #4408 from DoomHammer/fix-chruby-test-expression
a97a308 Merge pull request #4349 from FishingCactus/fix-atom_plugin_for_cygwin
3b2d036 Merge pull request #4377 from fcrozat/master
ccc86da Merge pull request #4375 from PrestanceDesign/capistrano-plugin-fix
a861719 Merge pull request #4340 from pahnev/master
17088c6 Fix invalid test expression.
0c0450b Accept single and double quotes in Gulp plugin
07f08aa Adds Cygwin support
8e74f7c Add alias for print latest tag name
96ff861 Merge branch 'master' into installer-cygwin-support-3
7a63609 Correct repo dir
12e99b5 fix indentation
5323954 Uniform git prompt equal remote
e957ae4 Update README.md
95296bb also handle missing tput in upgrade script.
76a26a2 Merge pull request #4372 from afh/pull/emotty_theme
326c2b0 Replaced the use of 'print' with 'echo' in order to sanitise track and artist names
993e09c Added function for 'itunes playing' to display state when not playing
9f2acdc You can now use 'itunes status' as well as 'itunes playing' to show current track
29db0e0 Fixed colourisation of Now Playing function
a746e60 Update osx.plugin.zsh
884a879 Do not fail if tput is not available
1bb2715 Fix capistrano problem when generating autocompletion
f850296 Added cygwin support to atom plugin
7576f85 Merge remote-tracking branch 'robyrussel/master' into fix-atom_plugin_for_cygwin
1a51100 Fix issues with character widths in emotty theme
918d26e Merge pull request #3664 from apjanke/installer-portable-colors
6cddf72 Merge branch 'master' into installer-portable-colors
cbc1a08 Merge pull request #4342 from robobenklein/patch-1
25f2d59 Merge pull request #4353 from dzotokan/feat/stackPlugin
4d65dd2 Merge pull request #4310 from ablyler/add-codeclimate-plugin
e268ef3 Merge pull request #4320 from ixti/fix/aws-plugin-rprompt-pollution
183026f Merge pull request #4316 from bronzdoc/feature/rvm_amuse_theme
b29095f Merge pull request #4354 from henrikhodne/patch-1
c4d84f1 Merge pull request #4343 from apjanke/jira-readme
85f53b0 Merge pull request #4359 from noseglid/patch-1
ff780ba Merge pull request #4371 from afh/pull/emotty_theme
ce10457 Merge pull request #4370 from afh/pull/emotty_plugin
2dc980c Merge pull request #4331 from icholy/master
51677da Merge pull request #4091 from apjanke/agnoster-clarify-powerline
36884cc Merge pull request #4189 from bmdhacks/master
db14538 Merge pull request #4315 from mbologna/fancy-ctrl-z
3b29132 Merge pull request #4300 from igordejanovic/vim-escape-fname
cfba05c Merge pull request #4282 from ferenczy/master
ff3e0d5 Merge pull request #4266 from t413/master
3b5300c Merge pull request #4252 from Fice-T/master
9bd88bb Merge pull request #4251 from mcornella/fix-completion-dots
4f1caf0 Merge pull request #4237 from mcornella/fix-taskwarrior-plugin
6eb6017 Merge pull request #4235 from mcornella/fix-xcode-plugin
1e49dfc Merge pull request #4209 from ah450/npm-exec
0756555 Merge pull request #4201 from wkentaro/gnu-utils-findutils
576453c Merge pull request #4173 from sharkySharks/master
bb5bc64 Merge pull request #4155 from honnix/fix_color
681c42a Merge pull request #4154 from sfragis/toggle-sudo
f7c24e1 Merge pull request #4137 from troter/coffee-first-argument-with-double-quote
544eccb Fixing conflict in rails plugin merge with rake test shortcut
e3d305e Merge branch 'skv-headless-rails-rake-test'
04c8acf Merge branch 'rails-rake-test' of https://github.com/skv-headless/oh-my-zsh into skv-headless-rails-rake-test
fb0776e Merge pull request #4134 from boddhisattva/rails-rake-routes-alias
adaf89c Merge pull request #4113 from apjanke/gnzh-remove-eval
dde5540 Merge pull request #4093 from apjanke/osx-fix-tab-for-iterm
1324e61 Merge pull request #4050 from mbologna/michelebologna_fix_git_prompt
763bf63 Merge pull request #3971 from moul/pr-scaleway
0bb3e01 Merge pull request #3940 from apjanke/diagnostic-dump-function
8cf88f2 Merge pull request #3911 from mbologna/git_remote_status_equal
baf1aa1 Merge pull request #3661 from ericbottard/GradleWrapperFix
3c782f7 Merge pull request #3582 from apjanke/fold-terminalapp-plugin-into-termsupport
4bd6c43 Merge pull request #3408 from spacewander/git-extras
93c6b5d Merge pull request #3078 from akoenig/gulpjs
5e45c16 Merge pull request #2751 from drm00/fix-openbsd-colorls
cc53e4c Merge pull request #2471 from phstc/capistrano-multistage
56cdec7 Merge pull request #3889 from leycec/compaudit
550573b Add emotty theme
dce052d Add emotty plugin
5cf0a01 Use local gradlew
8c5b948 chruby: donʼt try to execute .sh files before loading
bb10ad0 Remove unnecessary sandbox fn
a8a8bc3 Add simple Stack commands list
e8639c7 Update to current robbyrussell/oh-my-zsh master
797e1f9 [plugins/bgnotify] fix for iTerm2 notification clicks
6e0fcf8 Fixed atom plugin for cygwin users
c9af79f jira: add README, "emulate -L zsh", add "dumpconfig" action
6642a99 xcode: extend xcselv to list versions and do completion
22287d0 handle multiple paths in GOPATH
36fea45 svn plugin: urldecode repo info
0233979 Fixed broken git branch icon
dca4295 Make Readme much clearer and explain edits.
953e4d8 Make Linux compatible
19c0b18 fix url-quote-magic not working issue
9e9b790 golang: improve go doc completion
6170fa4 Added fedora plugin, based on dnf/yum plugin
82ae41c Reorder xcode plugin file
213f46a Add xcselv documentation in the README
5584aa0 xcode: add version-based xcselv()
86d881c Added aliases for --now commands
d95589d Add README for the xcode plugin
ec3694c Make simulator dependant of currently active dev directory
24bdd8e Replace xcsel function with just an alias
6a830f3 Return error if no xcode files where found
cbdad58 Use zsh globbing instead of ls + grep in xc function
38d25a3 Update taskwarrior completion to latest version (Jul 26 2015)
75844fe Put relevant documentation into README file
b42efeb Switch off line wrapping in case dots occupy extra line
6a8d406 Use prompt expansion sequence to color red the output
3976e04 Use proper if comparison
9c08641 Merge pull request #4299 from mcornella/refactor-frontend-search-plugin
7a63cca Fix aws plugin RPROMPT pollution
46ddd88 diagnostics: switch to shasum, filter sysinfo using lines
d009f24 gnzh theme: fix "eval" and related problems. Switch to normal zsh %F/%f prompt escapes to avoid "eval" and extra variables. Wrap whole thing in anonymous function so the existing `local` statements actually work. Then switch '...' to eager "..." so stuff actually works with local variables. And local-ize the remaining variables that are used only in prompt construction.
93b4a6c Merge branch 'master' into osx-fix-tab-for-iterm
82c76f6 Merge changes from #4241 into installer-portable-colors
502f08b Add Cygwin support to installer. * Balk at incompatible Windows/MSYS git * Test for chsh presence before trying to use it * Replace non-portable `[[ ... ]]` and `[ x = *pattern* ]` constructs
c7d782f Add the update from @mtwentyman https://github.com/phstc/dotfiles/pull/1 to make it work for older versions of capistrano
9a7b2d7 Moved comments and credits from source to README
bec496f Display rvm-prompt output.
6d7c39a Added fancy-ctrl-z plugin
ef4a315 Fix invocation of gradlew
b08431f Add codeclimate autocomplete plugin
c481c62 Refactor and clear up README file
d982e12 Reorder alias definitions
663ac56 Prettify frontend help output and clean up logic
ff706f3 Add "help" method in "frontend-search" plugin
f1472f1 Simplify frontend-search function with assoc array
7f64092 [vim-interaction plugin] Escaping special chars in file names and simplifying code.
0532860 Merge pull request #4285 from nmaggioni/master
7366b56 Merge pull request #4268 from ZhengzhongZhang/patch-1
01b3783 Merge pull request #4302 from kyleheyne/patch-1
022a060 thefuck-alias -> thefuck --alias
ba5fd57 Merge pull request #3989 from eubenesa/master
69f098a Mentioning that you can set the theme to 'random' and it'll possibly bake you a pie.
a77e23a Merge pull request #4109 from zhiyelee/patch-1
da6ece4 Merge pull request #4117 from nextgenthemes/patch-1
eb12ec1 Merge pull request #4146 from perobertson/heroku-help
ac85faa Merge pull request #4171 from linux-china/master
c1bff77 Merge pull request #4195 from jerryling315/master
3f95377 Merge pull request #4198 from matjack1/gclean-gpristine
daabe2a Merge pull request #4205 from mcornella/fix-git-prompt-plugin
c10d5c8 Merge pull request #4244 from Gnouc/master
69a1715 Merge pull request #4239 from yous/fix-linux-gems
adff369 Merge pull request #4220 from andytank123/master
ccaaa99 Merge pull request #4241 from heartinpiece/master
2f6d85d Merge pull request #4248 from gabetax/rbenv_plugin_load_performance
51c3ab7 Merge pull request #4283 from hanschen/master
14e1f0c Merge pull request #4286 from RobinDaugherty/rand-quote-failure
a228604 Merge pull request #4249 from KrauseFx/patch-1
9c9699d Merge pull request #4250 from mcornella/fix-divide-by-zero-emoji
6346cc9 Merge pull request #4260 from fgibaux/patch-1
c084a13 Merge pull request #4259 from apjanke/jira-prefix-and-help-and-stuff
e59f4cb Merge pull request #4271 from loctauxphilippe/patch-1
9bb99e1 Merge pull request #4284 from gsklee/patch-1
50d3294 Merge pull request #4289 from moonfruit/master
869b104 Merge pull request #4292 from cxbig/master
b3f167d Merge pull request #3613 from apjanke/remove-sed-i
a7aed69 Merge pull request #4170 from black-roland/master
b1d57fa Merge pull request #4294 from willmendesneto/master
0a80889 Frontend-search: add search in npm website
acf6039 improved alias conflict between git flow & git fetch
0a2c31f Remove redundant semicolon
fe92ea9 installer: switch twitter link to https
d923ceb Updated with @mcornella suggestions
96aefd2 Remove code, not comment it out
241be2d Fix rand-quote failure when site is unreachable
058bbe4 General compatibility
a127c4f 'ip' command compatibility and much quicker external IP detection
8ab1b6d Update README.markdown
1bf5c58 Update autojump plugin for latest brew installation
76f4871 Added missing commands to Vagrant plugin, updated commands description
18ef1ee Merge remote-tracking branch 'robbyrussell/master'
aaf5c8f added apt-get autoremove in ubuntu plugin
1aeebf6 Update link
7c31c7a Bring bgnotify plugin up to date with t413/zsh-background-notify
a9daea1 plugin symfony2 sf2.7 compatibility fix
dc42e8d jira: add completion
7cf892e Add dashboard support and default-action configuration. Some refactoring.
ee4a423 Merge branch 'pr-4158' into jira-prefix-and-help-and-stuff
caf667f Merge branch PR 4132 into jira-prefix-and-help-and-stuff
5c8b0cc Add clipcopy() and clippaste() generic cross-platform CLI clipboard functions. Change copydir, copyfile, and coffee plugins to use them, instead of the Mac-only `pbcopy` command.
00eb465 Merge branch 'master' into fold-terminalapp-plugin-into-termsupport
47d19cc Add defensive `emulate -L zsh` to termsupport functions
96c34ce Add a deprecation comment.
9121f3e Merge pull request #4 from wkentaro/fix-git-prompt-plugin
c4ba306 Show tag name when detached status if possible
c66c3ae Fix graphical bug in cypher theme when return status is non-zero
3f83331 removes a trailing white space
be667a2 Remove obsolete comment
3c69874 Clean up gitstatus.py
45473c3 Fix for initial or detached status branch info
30bed07 Parse UTF-8 output from git status
94007f7 git-prompt: collect all git status information by one cmd
6ff53d1 Cleanup of git-prompt plugin file
1d133ff Cleanup the rest of gitstatus.py
5642014 Pull in simplified version from @wkentaro
6443626 Pull in latest version from olivierverdier/zsh-git-prompt
c6a5f6e Check that list_size value is not zero before division
88243b8 Use right variable name to avoid zero-length array
de47e2d Use https instead of http
daedfca reduce rbenv plugin load time by 150ms by removing additional brew call
d20c111 rvm plugin: Fix `gems` to work with GNU sed
0238301 Emoji plugin - Fix wrong string comparison
58d2f93 Check if Zsh is installed prior to installing Oh My Zsh
dcd95dd Changes quotes so that path will be set appropriately on multiple runs
14b4ba8 Move urlencode/urldecode functions to core lib
c3fbe4d Add support for Docker images from custom registries
720fb5b Support for 'scw' command (Scaleway CLI)
269ae84 Removes unnecessary single quotes
9c74128 chucknorris: add missing line/quote delimiters
e1353fc Adds npmE alias
800af04 Add sc-launch as a shortcut for start & enable
daa04ba gnu-utils: add findutils (find,xargs,locate)
fb8c446 Thefuck: fix global variable assignment
a2b574b git plugin: make gclean safer, introduce gpristine
96e5346 Merge branch 'master' of gh:robbyrussell/oh-my-zsh
2120b2e Add escaped home
c83575d Add 'man' plugin.
b875df8 agnoster: speed up git prompt
f534b4b Thefuck: fixed compability with latest version
54e2740 Thefuck: replaced static alias with `eval "$(thefuck-alias)"`
8e8a133 Thefuck: combined with @cristim plugin. Code formating
fa25445 diagnostics: include output file name in dump output
803e5db improved the check for availability
0da9a4b fuck: added a basic plugin for https://github.com/nvbn/thefuck
e8caf22 Cygwin-specific "chsh" installation issue fixed.
da395c5 Secure umask enforced during installation.
cb55161 Completion insecurities handled on startup.
cacc6c3 replaced Om spelling so letters would not overlap
5a1dd14 removed incorrect Devanagari conjunct symbol at end of Om
e38455b Added conflict note (thefuck plugin)
b4a8cbf spring boot plugin
f838b56 spring boot plugin readme
cd2213a Thefuck plugin README
7a13a40 Added thefuck plugin https://github.com/nvbn/thefuck
afa3057 Add jira_url_help
46d1338 [theme] Fix color problem of steeef theme
ff8d799 Esc-esc now toggles sudo.
dcb175d Insecure completion handler added.
775ac3a The executable command on Mac OSX is 'ack' rather than 'ack-grep'.
b7617b3 Check for autoenv_init function before trying to source autoenv.
ffe8e54 add '--help' to heroku commands
bca720f diagnostics: include detailed OS version info if possible
1e8196d passing the first argument with double quote
ad4675c Concise local variables declarations
b1772c5 More consistent curly braces variables
37f45eb Making variables local in jira plugin
1e99168 Changing indents to be more consistent (2 spaces)
88a30a3 Changing string comparison for more zsh-like
750de22 rails rake test
dff0374 adds an alias to search for the rails routes that pattern match a string
8cf6100 installer: use terminfo for portable escape sequences Do not use terminal visual effects if not connected to a terminal.
19ea867 install.sh: use portable printf instead of echo
b1da3bb Adding ability to add JIRA_PREFIX as an env variable (e.g. in .zshrc) and minor refactor to bash curly variable braces
c82deed agnoster: Protect Unicode esape sequences with local LC_* settings
a2e01e9 chucknorris: check for strfile dependency Gives a better error message than "command not found: strfile", because it's not obvious to many users that strfile is part of fortune. Also handles the weird /usr/sbin install location for strfile on Cygwin.
2e92ff8 Adds agar = apt-get autoremove
efb04d6 add git alias `gcam` - git commit -am
9813ff5 omz_diagnostic_dump: Add umask and $fpath listing. This helps catch issues with compinit and insecure directories.
689b5ab osx: fix tab* functions so cd works in iTerm2, exit status is correct, and error messages are not discarded.
4cd281b agnoster: Define Powerline chars with escape sequence, and use same character on all platforms. Add clarifying comments. This makes everything consistent with the current Powerline-patched fonts definitions.
68b792b Change to use omz git_prompt* functions
01e355f In addition to the already existing variables ZSH_THEME_GIT_PROMPT for behind, ahead and diverged remote, I added ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE.
10c92cc Updates to ember-cli plugin
af68165 Fix name of backed-up zshrc
afadb5a diagnostics: add zstyle state to output
82c1288 Include some bash rc files; improve formatting; more version info
ea6adc5 Add omz_diagnostic_dump() to help with bug reports.
cb0718c chucknorris: locate plugin dir using $0 instead of hardcoded $ZSH
88f42b6 Add support for variant "utf8" locale suffix spelling. Fix dumb bug in iconv call that would cause it to hang.
cb37c93 Remove unnecessary braces.
1246c3e install.sh: Replace nonstandard "sed -i" with sed + mv commands. Makes portable to systems whose sed lacks "-i", like OpenBSD.
5f90781 plugins/chucknorris: Add automatic updating of the compiled fortune data file. Use local variable for readability, and anonymous function to provide a scope for the local variable.
187cf07 For unspecified encodings, assume it's UTF-8 or compatible (e.g. ASCII) and muddle through without character encoding conversion.
702ff1c Add support for non-UTF-8 encodings in caller's locale.
3a18c33 In termsupport, use LC_CTYPE instead of LANG to enable byte-by-byte text processing. LANG doesn't seem to actually work.
a9e97e5 Remove terminalapp plugin and fold its implementation in to lib/termsupport.zsh. Replaces the redundant Terminal.app support that was recently added to termsupport.
0c77e4b update git-extras plugin
8f9a72a Moved plugin.
20edd5f gulp.js plugin
f516b7c add check for colored ls on openbsd. (retry of #2225)
c9fbfc9 Uses `shipit` instead of `xcap`
16ae4e1 Adds support capistrano multistage completiongit-subtree-dir: repos/robbyrussell/oh-my-zsh
git-subtree-split: 8c84342b2092f3823e38188bd9ed11e5f5ff2e3f
# ------------------------------------------------------------------------------
# FILE: gnu-utils.plugin.zsh
# DESCRIPTION: oh-my-zsh plugin file.
# AUTHOR: Sorin Ionescu (sorin.ionescu@gmail.com)
# VERSION: 1.0.0
# ------------------------------------------------------------------------------
if [[ -x "${commands[gwhoami]}" ]]; then
__gnu_utils() {
emulate -L zsh
local gcmds
local gcmd
local cmd
local prefix
# coreutils
gcmds=('g[' 'gbase64' 'gbasename' 'gcat' 'gchcon' 'gchgrp' 'gchmod'
'gchown' 'gchroot' 'gcksum' 'gcomm' 'gcp' 'gcsplit' 'gcut' 'gdate'
'gdd' 'gdf' 'gdir' 'gdircolors' 'gdirname' 'gdu' 'gecho' 'genv' 'gexpand'
'gexpr' 'gfactor' 'gfalse' 'gfmt' 'gfold' 'ggroups' 'ghead' 'ghostid'
'gid' 'ginstall' 'gjoin' 'gkill' 'glink' 'gln' 'glogname' 'gls' 'gmd5sum'
'gmkdir' 'gmkfifo' 'gmknod' 'gmktemp' 'gmv' 'gnice' 'gnl' 'gnohup' 'gnproc'
'god' 'gpaste' 'gpathchk' 'gpinky' 'gpr' 'gprintenv' 'gprintf' 'gptx' 'gpwd'
'greadlink' 'grm' 'grmdir' 'gruncon' 'gseq' 'gsha1sum' 'gsha224sum'
'gsha256sum' 'gsha384sum' 'gsha512sum' 'gshred' 'gshuf' 'gsleep' 'gsort'
'gsplit' 'gstat' 'gstty' 'gsum' 'gsync' 'gtac' 'gtail' 'gtee' 'gtest'
'gtimeout' 'gtouch' 'gtr' 'gtrue' 'gtruncate' 'gtsort' 'gtty' 'guname'
'gunexpand' 'guniq' 'gunlink' 'guptime' 'gusers' 'gvdir' 'gwc' 'gwho'
'gwhoami' 'gyes')
# findutils
gcmds+=('gfind' 'gxargs' 'glocate')
# Not part of either coreutils or findutils, installed separately.
gcmds+=('gsed' 'gtar' 'gtime')
for gcmd in "${gcmds[@]}"; do
#
# This method allows for builtin commands to be primary but it's
# lost if hash -r or rehash -f is executed. Thus, those two
# functions have to be wrapped.
#
(( ${+commands[$gcmd]} )) && hash ${gcmd[2,-1]}=${commands[$gcmd]}
#
# This method generates wrapper functions.
# It will override shell builtins.
#
# (( ${+commands[$gcmd]} )) && \
# eval "function $gcmd[2,-1]() { \"${prefix}/${gcmd//"["/"\\["}\" \"\$@\"; }"
#
# This method is inflexible since the aliases are at risk of being
# overriden resulting in the BSD coreutils being called.
#
# (( ${+commands[$gcmd]} )) && \
# alias "$gcmd[2,-1]"="${prefix}/${gcmd//"["/"\\["}"
done
return 0
}
__gnu_utils;
function hash() {
if [[ "$*" =~ "-(r|f)" ]]; then
builtin hash "$@"
__gnu_utils
else
builtin hash "$@"
fi
}
function rehash() {
if [[ "$*" =~ "-f" ]]; then
builtin rehash "$@"
__gnu_utils
else
builtin rehash "$@"
fi
}
fi