.bashrc is in my dotfiles repo. The rest aren't bash, so: sh.
--HG--
rename : bash/background_function.sh => sh/background_function.sh
rename : bash/gen_iso_image.sh => sh/gen_iso_image.sh
rename : bash/test-args.sh => sh/test-args.sh
catseye
11 years ago
0 | |
#!/bin/sh
|
1 | |
|
2 | |
funky()
|
3 | |
{
|
4 | |
for J in 1 2 3 4 5; do
|
5 | |
echo "--> $J"
|
6 | |
sleep 1
|
7 | |
done
|
8 | |
}
|
9 | |
|
10 | |
funky &
|
11 | |
|
12 | |
for K in 1 2 3 4 5; do
|
13 | |
echo "$K <<<"
|
14 | |
sleep 1
|
15 | |
done
|
0 | |
# Not a fully formed script; intended to be copied into, or sourced from,
|
1 | |
# .bashrc or .bash_profile.
|
2 | |
# Also woefully incomplete right now.
|
3 | |
|
4 | |
export EDITOR=nano
|
5 | |
export PATH="$HOME/bin:$PATH"
|
6 | |
|
7 | |
bind '"\e[A":history-search-backward'
|
8 | |
bind '"\e[B":history-search-forward'
|
0 | |
#!/bin/sh
|
1 | |
|
2 | |
# command-line options for genisoimage that let you create a decent ISO
|
3 | |
genisoimage -R -J -D -joliet-long -o $1.iso $1
|
0 | |
#!/bin/sh
|
1 | |
|
2 | |
# ./test-args.sh one two three
|
3 | |
# ./test-args.sh one three
|
4 | |
# ./test-args.sh one '' three
|
5 | |
|
6 | |
echo "ONE=[$1]"
|
7 | |
echo "TWO=[$2]"
|
8 | |
echo "THREE=[$3]"
|
9 | |
|
10 | |
if [ "$2" != "" ]; then
|
11 | |
echo "You supplied arg #2"
|
12 | |
fi
|
13 | |
|
|
0 |
#!/bin/sh
|
|
1 |
|
|
2 |
funky()
|
|
3 |
{
|
|
4 |
for J in 1 2 3 4 5; do
|
|
5 |
echo "--> $J"
|
|
6 |
sleep 1
|
|
7 |
done
|
|
8 |
}
|
|
9 |
|
|
10 |
funky &
|
|
11 |
|
|
12 |
for K in 1 2 3 4 5; do
|
|
13 |
echo "$K <<<"
|
|
14 |
sleep 1
|
|
15 |
done
|
|
0 |
#!/bin/sh
|
|
1 |
|
|
2 |
# command-line options for genisoimage that let you create a decent ISO
|
|
3 |
genisoimage -R -J -D -joliet-long -o $1.iso $1
|
|
0 |
#!/bin/sh
|
|
1 |
|
|
2 |
# ./test-args.sh one two three
|
|
3 |
# ./test-args.sh one three
|
|
4 |
# ./test-args.sh one '' three
|
|
5 |
|
|
6 |
echo "ONE=[$1]"
|
|
7 |
echo "TWO=[$2]"
|
|
8 |
echo "THREE=[$3]"
|
|
9 |
|
|
10 |
if [ "$2" != "" ]; then
|
|
11 |
echo "You supplied arg #2"
|
|
12 |
fi
|
|
13 |
|