13
13
14
14
15
15
Usage (){
16
- echo " usage: curl -Ls about.magcho.com | sh
16
+ echo " usage: curl -Ls about.magcho.com | sh
17
17
magcho's self-introduction
18
18
19
19
How to execute subcommands
20
- Ex .) curl -Ls about.magcho.com | sh -s help
20
+ e.g .) curl -Ls about.magcho.com | sh -s help
21
21
"
22
22
}
23
23
Help (){
24
- echo " subcommands:
24
+ echo " subcommands:
25
25
help Display the help message
26
26
more Display full the magcho's introduction
27
27
tw Visit to magcho's twitter
28
28
hp Visit to magcho.com"
29
29
}
30
30
Intro (){
31
- echo " | \033[32mName:\033[m magcho |
31
+ echo " | \033[32mName:\033[m magcho |
32
32
| \033[034mTwitter:\033[039m https://twitter.com/magcho0527 |
33
33
| \033[36mMail:\033[m [email protected] |
34
34
| \033[31mHP:\033[m https://magcho.com |"
35
35
}
36
36
IntroMore (){
37
37
38
- if echo " $EDITOR " | grep ' emacs' > /dev/null; then
39
- EDITOR_MESS=" (You'er emacser!! Let's be friends!) |"
40
- elif echo " $EDITOR " | grep ' vim' > /dev/null; then
41
- EDITOR_MESS=" (YOU ARE VIMMER??? SHALL WE USE EMACS?) |"
42
- else
43
- EDITOR_MESS=" (Shall we use Emacs?) |"
44
- fi
38
+ if echo " $EDITOR " | grep ' emacs' > /dev/null; then
39
+ EDITOR_MESS=" (You'er emacser!! Let's be friends!) |"
40
+ elif echo " $EDITOR " | grep ' vim' > /dev/null; then
41
+ EDITOR_MESS=" (YOU ARE VIMMER??? SHALL WE USE EMACS?) |"
42
+ else
43
+ EDITOR_MESS=" (Shall we use Emacs?) |"
44
+ fi
45
45
46
- echo " | Blog: https://blog.magcho.com |
46
+ echo " | Blog: https://blog.magcho.com |
47
47
| Github: https://github.com/magcho |
48
48
| Name: Suetake Dai |
49
49
| Age: 22 |
@@ -53,40 +53,48 @@ echo " | Blog: https://blog.magcho.com |
53
53
|$EDITOR_MESS "
54
54
}
55
55
Open (){
56
- if [ $1 = tw ]; then
57
- open https://twitter.com/magcho0527
58
- elif [ $1 = hp ]; then
59
- open https://magcho.com
60
- fi
56
+ if [ $1 = tw ]; then
57
+ echo ' open twitter: https://twitter.com/magcho0527'
58
+ open https://twitter.com/magcho0527
59
+ elif [ $1 = hp ]; then
60
+ echo ' open HP: https://magcho.com'
61
+ open https://magcho.com
62
+ elif [ $1 = gh ]; then
63
+ echo ' open GitHub: https://github.com/magcho/'
64
+ open https://github.com/magcho/
65
+ fi
61
66
}
62
67
PrintLine (){
63
- echo " ==============================================="
68
+ echo " ==============================================="
64
69
}
65
70
66
71
67
72
68
73
case $1 in
69
- help)
70
- Usage
71
- Help
72
- ;;
73
- more)
74
- Usage
75
- PrintLine
76
- Intro
77
- IntroMore
78
- PrintLine
79
- ;;
80
- tw)
81
- Open tw
82
- ;;
83
- hp)
84
- Open hp
85
- ;;
86
- * )
87
- Usage
88
- PrintLine
89
- Intro
90
- PrintLine
91
- ;;
74
+ help)
75
+ Usage
76
+ Help
77
+ ;;
78
+ more)
79
+ Usage
80
+ PrintLine
81
+ Intro
82
+ IntroMore
83
+ PrintLine
84
+ ;;
85
+ tw)
86
+ Open tw
87
+ ;;
88
+ hp)
89
+ Open hp
90
+ ;;
91
+ gh)
92
+ Open gh
93
+ ;;
94
+ * )
95
+ Usage
96
+ PrintLine
97
+ Intro
98
+ PrintLine
99
+ ;;
92
100
esac
0 commit comments