A big renaming

This commit is contained in:
Ev Bogdanov 2017-08-16 20:54:21 +03:00
parent 632eff130c
commit dea4747965
9 changed files with 24 additions and 31 deletions

View file

@ -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**.

View file

18
bin/commit Executable file
View 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

View file

@ -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

View file

10
bin/hg+
View file

@ -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

View file

View file

View file