Skip to content
This repository
Browse code

add alias metadata, remove help()

  • Loading branch information...
commit 17aaa9ce24c725ebcf8df1d2dfe46b591e686b29 1 parent 95ce548
Erich Smith erichs authored nwinkler committed
26 aliases/available/bundler.aliases.bash
... ... @@ -1,21 +1,9 @@
1   -#!/usr/bin/env bash
  1 +cite 'about-alias'
  2 +about-alias 'ruby bundler'
2 3
3 4 # Bundler Commands
4   -alias be="bundle exec"
5   -alias bi="bundle install"
6   -alias bl="bundle list"
7   -alias bu="bundle update"
8   -alias bp="bundle package"
9   -
10   -
11   -function bundler-help() {
12   - echo "Bundler Aliases Usage"
13   - echo
14   - echo " be = bundle exec"
15   - echo " bi = bundle install"
16   - echo " bl = bundle list"
17   - echo " bu = bundle update"
18   - echo " bp = bundle package"
19   - echo
20   -}
21   -
  5 +alias be='bundle exec'
  6 +alias bi='bundle install'
  7 +alias bl='bundle list'
  8 +alias bu='bundle update'
  9 +alias bp='bundle package'
5 aliases/available/emacs.aliases.bash
... ... @@ -1,4 +1,5 @@
1   -#!/usr/bin/env bash
  1 +cite 'about-alias'
  2 +about-alias 'emacs editor'
2 3
3 4 case $OSTYPE in
4 5 linux*)
@@ -6,6 +7,6 @@ case $OSTYPE in
6 7 alias e='emacsclient -n'
7 8 ;;
8 9 darwin*)
9   - alias em="open -a emacs"
  10 + alias em='open -a emacs'
10 11 ;;
11 12 esac
38 aliases/available/general.aliases.bash
... ... @@ -1,5 +1,3 @@
1   -#!/usr/bin/env bash
2   -
3 1 cite about-alias
4 2 about-alias 'general aliases'
5 3
@@ -30,20 +28,20 @@ alias cls='clear'
30 28 alias edit="$EDITOR"
31 29 alias pager="$PAGER"
32 30
33   -alias q="exit"
  31 +alias q='exit'
34 32
35 33 alias irc="$IRC_CLIENT"
36 34
37   -alias rb="ruby"
  35 +alias rb='ruby'
38 36
39 37 # Pianobar can be found here: http://github.com/PromyLOPh/pianobar/
40 38
41   -alias piano="pianobar"
  39 +alias piano='pianobar'
42 40
43 41 alias ..='cd ..' # Go up one directory
44 42 alias ...='cd ../..' # Go up two directories
45 43 alias ....='cd ../../..' # Go up two directories
46   -alias -- -="cd -" # Go back
  44 +alias -- -='cd -' # Go back
47 45
48 46 # Shell History
49 47 alias h='history'
@@ -56,30 +54,4 @@ fi
56 54
57 55 # Directory
58 56 alias md='mkdir -p'
59   -alias rd=rmdir
60   -
61   -function aliases-help() {
62   -echo "Generic Alias Usage"
63   -echo
64   -echo " sl = ls"
65   -echo " ls = ls -G"
66   -echo " la = ls -AF"
67   -echo " ll = ls -al"
68   -echo " l = ls -a"
69   -echo " c/k/cls = clear"
70   -echo " .. = cd .."
71   -echo " ... = cd ../.."
72   -echo " - = cd -"
73   -echo " h = history"
74   -echo " md = mkdir -p"
75   -echo " rd = rmdir"
76   -echo " editor = $EDITOR"
77   -echo " pager = $PAGER"
78   -echo " piano = pianobar"
79   -echo " q = exit"
80   -echo " irc = $IRC_CLIENT"
81   -echo " md = mkdir -p"
82   -echo " rd = rmdir"
83   -echo " rb = ruby"
84   -echo
85   -}
  57 +alias rd='rmdir'
36 aliases/available/git.aliases.bash
... ... @@ -1,4 +1,5 @@
1   -#!/usr/bin/env bash
  1 +cite 'about-alias'
  2 +about-alias 'common git abbreviations'
2 3
3 4 # Aliases
4 5 alias gcl='git clone'
@@ -38,36 +39,3 @@ case $OSTYPE in
38 39 alias gd='git diff'
39 40 ;;
40 41 esac
41   -
42   -
43   -
44   -function git-help() {
45   - echo "Git Custom Aliases Usage"
46   - echo
47   - echo " gcl = git clone"
48   - echo " g = git"
49   - echo " get = git"
50   - echo " ga = git add"
51   - echo " gall = git add ."
52   - echo " gst/gs = git status"
53   - echo " gss = git status -s"
54   - echo " gl = git pull"
55   - echo " gup = git fetch && git rebase"
56   - echo " gp = git push"
57   - echo " gd = git diff | mate"
58   - echo " gdv = git diff -w \"$@\" | vim -R -"
59   - echo " gc = git commit -v"
60   - echo " gca = git commit -v -a"
61   - echo " gci = git commit --interactive"
62   - echo " gb = git branch"
63   - echo " gba = git branch -a"
64   - echo " gcount = git shortlog -sn"
65   - echo " gcp = git cherry-pick"
66   - echo " gco = git checkout"
67   - echo " gexport = git git archive --format zip --output"
68   - echo " gdel = git branch -D"
69   - echo " gpo = git push origin"
70   - echo " gmu = git fetch origin -v; git fetch upstream -v; git merge upstream/master"
71   - echo " gll = git log --graph --pretty=oneline --abbrev-commit"
72   - echo
73   -}
26 aliases/available/heroku.aliases.bash
... ... @@ -1,4 +1,5 @@
1   -#!/usr/bin/env bash
  1 +cite 'about-alias'
  2 +about-alias 'heroku task abbreviations'
2 3
3 4 # heroku
4 5 alias h='heroku'
@@ -31,26 +32,3 @@ alias hc='heroku config'
31 32 alias hca='heroku config:add'
32 33 alias hcr='heroku config:remove'
33 34 alias hcc='heroku config:clear'
34   -
35   -function heroku-help() {
36   - echo "Heroku Aliases Usage"
37   - echo
38   - echo " h = heroku"
39   - echo " hl = heroku list"
40   - echo " hi = heroku info"
41   - echo " ho = heroku open"
42   - echo " hd = heroku dynos"
43   - echo " hw = heroku workers"
44   - echo " hr = heroku rake"
45   - echo " hcon = heroku console"
46   - echo " hnew = heroku create"
47   - echo " hrestart = heroku restart"
48   - echo " hlog = heroku logs"
49   - echo " hon = heroku maintenance:on"
50   - echo " hoff = heroku maintenance:off"
51   - echo " hc = heroku config"
52   - echo " hca = heroku config:add"
53   - echo " hcr = heroku config:remove"
54   - echo " hcc = heroku config:clear"
55   - echo
56   -}
12 aliases/available/hg.aliases.bash
... ... @@ -1,14 +1,6 @@
1   -#!/usr/bin/env bash
  1 +cite 'about-alias'
  2 +about-alias 'mercurial abbreviations'
2 3
3 4 alias hs='hg status'
4 5 alias hsum='hg summary'
5 6 alias hcm='hg commit -m'
6   -
7   -function hg-help() {
8   - echo "Mercurial Alias Help"
9   - echo
10   - echo " hs = hg status"
11   - echo " hsum = hg summary"
12   - echo " hcm = hg commit -m"
13   - echo
14   -}
31 aliases/available/homebrew.aliases.bash
... ... @@ -1,24 +1,13 @@
1 1 # Some aliases for Homebrew
2 2
3   -alias bup="brew update && brew upgrade"
4   -alias bout="brew outdated"
5   -alias bin="brew install"
6   -alias brm="brew uninstall"
7   -alias bls="brew list"
8   -alias bsr="brew search"
9   -alias binf="brew info"
10   -alias bdr="brew doctor"
  3 +cite 'about-alias'
  4 +about-alias 'homebrew abbreviations'
11 5
12   -function brew-help() {
13   - echo "Homebrew Alias Usage"
14   - echo
15   - echo "bup = brew update && brew upgrade"
16   - echo "bout = brew outdated"
17   - echo "bin = brew install"
18   - echo "brm = brew uninstall"
19   - echo "bls = brew list"
20   - echo "bsr = brew search"
21   - echo "binf = brew info"
22   - echo "bdr = brew doctor"
23   - echo
24   -}
  6 +alias bup='brew update && brew upgrade'
  7 +alias bout='brew outdated'
  8 +alias bin='brew install'
  9 +alias brm='brew uninstall'
  10 +alias bls='brew list'
  11 +alias bsr='brew search'
  12 +alias binf='brew info'
  13 +alias bdr='brew doctor'
31 aliases/available/maven.aliases.bash
... ... @@ -1,22 +1,11 @@
1   -alias mci="mvn clean install"
2   -alias mi="mvn install"
3   -alias mrprep="mvn release:prepare"
4   -alias mrperf="mvn release:perform"
5   -alias mrrb="mvn release:rollback"
6   -alias mdep="mvn dependency:tree"
7   -alias mpom="mvn help:effective-pom"
8   -alias mcisk="mci -Dmaven.test.skip=true"
  1 +cite 'about-alias'
  2 +about-alias 'maven abbreviations'
9 3
10   -function maven-help() {
11   - echo "Maven Custom Aliases Usage"
12   - echo
13   - echo " mci = mvn clean install"
14   - echo " mi = mvn install"
15   - echo " mrprep = mvn release:prepare"
16   - echo " mrperf = mvn release:perform"
17   - echo " mrrb = mvn release:rollback"
18   - echo " mdep = mvn dependency:tree"
19   - echo " mpom = mvn help:effective-pom"
20   - echo " mcisk = mvn clean install -Dmaven.test.skip=true"
21   - echo
22   -}
  4 +alias mci='mvn clean install'
  5 +alias mi='mvn install'
  6 +alias mrprep='mvn release:prepare'
  7 +alias mrperf='mvn release:perform'
  8 +alias mrrb='mvn release:rollback'
  9 +alias mdep='mvn dependency:tree'
  10 +alias mpom='mvn help:effective-pom'
  11 +alias mcisk='mci -Dmaven.test.skip=true'
3  aliases/available/osx.aliases.bash
... ... @@ -1,4 +1,5 @@
1   -#!/usr/bin/env bash
  1 +cite 'about-alias'
  2 +about-alias 'osx-specific aliases'
2 3
3 4 # Desktop Programs
4 5 alias fireworks="open -a '/Applications/Adobe Fireworks CS3/Adobe Fireworks CS3.app'"
24 aliases/available/rails.aliases.bash
... ... @@ -1,4 +1,5 @@
1   -#!/usr/bin/env bash
  1 +cite 'about-alias'
  2 +about-alias 'rails abbreviations'
2 3
3 4 # Rails Commands
4 5 alias r='rails'
@@ -19,24 +20,3 @@ alias restartapp='touch tmp/restart.txt'
19 20 alias restart='touch tmp/restart.txt' # restart passenger
20 21 alias devlog='tail -f log/development.log'
21 22 alias taild='tail -f log/development.log' # tail dev log
22   -
23   -function rails-help() {
24   - echo "Rails Aliases Usage"
25   - echo
26   - echo " r = rails"
27   - echo " rg = rails generate"
28   - echo " rs/ss = rails server"
29   - echo " ts = thin server"
30   - echo " rc/sc = rails console"
31   - echo " rn = rails new"
32   - echo " rd = rails dbconsole"
33   - echo " rp = rails plugin"
34   - echo " ra = rails application"
35   - echo " rd = rails destroy"
36   - echo " restartapp = touch tmp/restart.txt"
37   - echo " restart = touch tmp/restart.txt"
38   - echo " devlog = tail -f log/development.log"
39   - echo " taild = tail -f log/development.log"
40   - echo
41   -}
42   -
3  aliases/available/textmate.aliases.bash
... ... @@ -1,4 +1,5 @@
1   -#!/usr/bin/env bash
  1 +cite 'about-alias'
  2 +about-alias 'textmate abbreviations'
2 3
3 4 case $OSTYPE in
4 5 darwin*)
15 aliases/available/todo.txt-cli.aliases.bash
... ... @@ -1,19 +1,8 @@
1   -#!/usr/bin/env bash
  1 +cite 'about-alias'
  2 +about-alias 'todo.txt-cli abbreviations'
2 3
3 4 alias tls="$TODO ls"
4 5 alias ta="$TODO a"
5 6 alias trm="$TODO rm"
6 7 alias tdo="$TODO do"
7 8 alias tpri="$TODO pri"
8   -
9   -todo-help() {
10   - echo
11   - echo "todo.txt-cli Custom Aliases Usage"
12   - echo
13   - echo " tls = $TODO ls"
14   - echo " ta = $TODO add"
15   - echo " trm = $TODO rm"
16   - echo " tdo = $TODO do"
17   - echo " tpri = $TODO pri"
18   - echo
19   -}
3  aliases/available/vim.aliases.bash
... ... @@ -1,3 +1,4 @@
1   -#!/usr/bin/env bash
  1 +cite 'about-alias'
  2 +about-alias 'vim abbreviations'
2 3
3 4 alias v='mvim --remote-tab'

0 comments on commit 17aaa9c

Please sign in to comment.
Something went wrong with that request. Please try again.