aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-10-24 10:02:50 +1300
committerTom Ryder <tom@sanctum.geek.nz>2013-10-24 10:02:50 +1300
commit2b4a2064ecfa678c09e01fb33637d1bc2d006489 (patch)
tree1ed035d2f04193ec3a2b9bc1d3689251df82b3dc
parentReplace Vim functions with simple aliases (diff)
downloaddotfiles-2b4a2064ecfa678c09e01fb33637d1bc2d006489.tar.gz
dotfiles-2b4a2064ecfa678c09e01fb33637d1bc2d006489.zip
Add new alias
-rw-r--r--README.markdown6
-rw-r--r--git/gitconfig1
2 files changed, 7 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index c0ab7de4..8da58e96 100644
--- a/README.markdown
+++ b/README.markdown
@@ -112,6 +112,12 @@ in it are versioned; the rest are ignored locally:
$ git ls-files --others --exclude-standard >>.git/info/exclude
```
+There’s an `others` alias for the above command in `~/.gitconfig`:
+
+```bash
+$ git others >>.git/info/exclude
+```
+
As I occasionally have work on very old internal systems, my Bash is written to
work with [any version 2.05a or
newer](http://wiki.bash-hackers.org/scripting/bashchanges), a few versions
diff --git a/git/gitconfig b/git/gitconfig
index bad64086..71721ce8 100644
--- a/git/gitconfig
+++ b/git/gitconfig
@@ -15,6 +15,7 @@
[alias]
ack = grep --break --heading
+ others = ls-files --others --exclude-standard
[color]
ui = true