Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## This Fork

The purpose of this fork is to expand bash aliases, allowing you to run commands like `gr @something gl` when you've got `alias gl='git pull'` in your profile. **Currently only works for bash.**

To install this fork: `npm install -g git+ssh://git@github.com:michaek/gr.git`

## Features

- Tag all the things! `gr @work foo` will run the command `foo` in all the paths tagged `@work`.
Expand Down
2 changes: 1 addition & 1 deletion lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(line, cwd, onDone) {
var parts = (Array.isArray(line) ? line : line.split(' ')),
task;

task = spawn(parts[0], parts.slice(1), {
task = spawn(process.env.SHELL || '/bin/bash', ['-l', '-O', 'expand_aliases', '-c', parts.join(' ')], {
cwd: cwd,
stdio: ['ignore', process.stdout, process.stderr]
});
Expand Down