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:
|
||||
|
||||
- `a` start Acme
|
||||
- `c+ SYMBOL` comment selection (python: `|c+` or `|c+ '#'`, erlang: `|c+ %`, js: `|c+ //`)
|
||||
- `c- SYMBOL` uncomment selection
|
||||
- `git+ MESSAGE` git: commit and push to master
|
||||
- `h+ SYMBOL` draw a pretty heading
|
||||
- `hg+ MESSAGE` hg: commit and push to master
|
||||
- `lower` convert selection to lowercase
|
||||
- `c SYMBOL`/`uc SYMBOL` comment/uncomment selection
|
||||
- `commit MESSAGE` commit and push to master
|
||||
- `hd SYMBOL` draw a pretty heading
|
||||
- `i`/`ui` indent/unindent selection
|
||||
- `lstrip` remove leading whitespace
|
||||
- `search` search with The Silver Searcher
|
||||
- `s2t N_SPACES` spaces to tabs (default: 4 spaces to 1 tab)
|
||||
- `t2s N_SPACES` tabs to spaces (default: 1 tab to 4 spaces)
|
||||
- `t+` add tab
|
||||
- `t-` delete tab
|
||||
- `upper` convert selection to uppercase
|
||||
- `t2s N_SPACES`/`s2t N_SPACES` tabs <=> spaces
|
||||
- `upper`/`lower` convert selection to uppercase/lowercase
|
||||
|
||||
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