A big renaming
This commit is contained in:
parent
632eff130c
commit
dea4747965
9 changed files with 24 additions and 31 deletions
17
README.md
17
README.md
|
|
@ -82,19 +82,14 @@ I spawn Acme by running `a` script.
|
||||||
Who is who in **bin** directory:
|
Who is who in **bin** directory:
|
||||||
|
|
||||||
- `a` start Acme
|
- `a` start Acme
|
||||||
- `c+ SYMBOL` comment selection (python: `|c+` or `|c+ '#'`, erlang: `|c+ %`, js: `|c+ //`)
|
- `c SYMBOL`/`uc SYMBOL` comment/uncomment selection
|
||||||
- `c- SYMBOL` uncomment selection
|
- `commit MESSAGE` commit and push to master
|
||||||
- `git+ MESSAGE` git: commit and push to master
|
- `hd SYMBOL` draw a pretty heading
|
||||||
- `h+ SYMBOL` draw a pretty heading
|
- `i`/`ui` indent/unindent selection
|
||||||
- `hg+ MESSAGE` hg: commit and push to master
|
|
||||||
- `lower` convert selection to lowercase
|
|
||||||
- `lstrip` remove leading whitespace
|
- `lstrip` remove leading whitespace
|
||||||
- `search` search with The Silver Searcher
|
- `search` search with The Silver Searcher
|
||||||
- `s2t N_SPACES` spaces to tabs (default: 4 spaces to 1 tab)
|
- `t2s N_SPACES`/`s2t N_SPACES` tabs <=> spaces
|
||||||
- `t2s N_SPACES` tabs to spaces (default: 1 tab to 4 spaces)
|
- `upper`/`lower` convert selection to uppercase/lowercase
|
||||||
- `t+` add tab
|
|
||||||
- `t-` delete tab
|
|
||||||
- `upper` convert selection to uppercase
|
|
||||||
|
|
||||||
Put these guys in your **$PATH**.
|
Put these guys in your **$PATH**.
|
||||||
|
|
||||||
|
|
|
||||||
18
bin/commit
Executable file
18
bin/commit
Executable file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
echo 'What do you want to commit?'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d '.git' ]; then
|
||||||
|
git add -A
|
||||||
|
git commit -m ''"$*"''
|
||||||
|
git push -u origin master
|
||||||
|
elif [ -d '.hg' ]; then
|
||||||
|
hg addremove
|
||||||
|
hg commit -m ''"$*"''
|
||||||
|
hg push
|
||||||
|
else
|
||||||
|
echo 'No .git nor .hg directory found'
|
||||||
|
fi
|
||||||
10
bin/git+
10
bin/git+
|
|
@ -1,10 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
|
||||||
echo 'Where is my commit message, bro?'
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
git add -A
|
|
||||||
git commit -m ''"$*"''
|
|
||||||
git push -u origin master
|
|
||||||
10
bin/hg+
10
bin/hg+
|
|
@ -1,10 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
|
||||||
echo 'Where is my commit message, huh?'
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
hg addremove
|
|
||||||
hg commit -m ''"$*"''
|
|
||||||
hg push
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue