だいたい bash
for i in $(seq 1 1000); do
if (( $i % 100 == 0 )); then echo $i; fi
done参考: Vimスクリプト基礎文法最速マスター - 永遠に未完成 : http://thinca.hatenablog.com/entry/20100201/1265009821
" Vim から
:source tutorial.vim| .PHONY: update update-all all | |
| update: | |
| git pull origin master | |
| git submodule update --init | |
| update-all: update | |
| git submodule foreach git pull origin master | |
| all: update-all |
| key-amb:~/my/repos/enhancd% .config/bin/shove/bin/shove -v -s zsh test/enhancd-enhancd_test.sh | |
| : | |
| # __enhancd::cd() | |
| # With 1 set | |
| ok 1 - /home/key-amb/my/repos/enhancd is /home/key-amb/my/repos/enhancd | |
| ok 2 - /home/key-amb is /home/key-amb | |
| -: no such file or directory | |
| not ok 3 - /home/key-amb/my/repos/enhancd is /home/key-amb | |
| not ok 4 - /home/key-amb is /home/key-amb/my/repos/enhancd | |
| 1..4 |
# bash
git clone [email protected]:key-amb/enhancd.git -b feature/configure-subcommands ~/.enhancd
cat <<EOS >> ~/.bashrc
ENHANCD_HYPHEN_ARG="-ls"
ENHANCD_DOT_ARG="-up"
. ~/enhancd/init.sh
bind -x '"\C-ur": cd -ls'
EOS| #!/usr/bin/env bash | |
| set -euo pipefail | |
| envfile=".env.hubot" | |
| if [[ ! -e $envfile ]]; then | |
| echo "[error] $envfile not found!" | |
| exit 1 | |
| fi | |
| . $envfile |