diff --git a/README.md b/README.md index f0328ca..fc05c41 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Gum ===
-
+
@@ -12,7 +12,7 @@ Gum
Gum helps you write glamorous bash scripts by providing a collection of
beautiful and highly configurable ready-to-use utilities.
-
+
## Installation
@@ -66,7 +66,7 @@ Prompt your users for input with a simple command.
gum input > answer.text
```
-
+
#### Write
@@ -76,7 +76,7 @@ Prompt your users to write some multi-line text.
gum write > story.text
```
-
+
#### Filter
@@ -89,7 +89,7 @@ echo Cherry >> flavors.text
cat flavors.text | gum filter > selection.text
```
-
+
#### Choose
@@ -115,7 +115,7 @@ echo "What do you need from the grocery store?"
cat foods.txt | gum choose --no-limit
```
-
+
#### Spin
@@ -127,7 +127,7 @@ command exits.
gum spin --spinner dot --title "Buying Bubble Gum..." -- sleep 5
```
-
+
## Styling
@@ -142,7 +142,7 @@ gum style \
'Bubble Gum (1¢)' 'So sweet and so fresh!'
```
-
+
## Layout
@@ -165,7 +165,7 @@ BUBBLE_GUM=$(gum join "$BUBBLE" "$GUM")
gum join --align center --vertical "$I_LOVE" "$BUBBLE_GUM"
```
-
+
## Format
@@ -188,7 +188,7 @@ echo '{{ Bold "Tasty" }} {{ Italic "Bubble" }} {{ Color "99" "0" " Gum " }}' \
echo 'I :heart: Bubble Gum :candy:' | gum format -t emoji
```
-
+
## Examples
@@ -210,7 +210,7 @@ git commit -m "$(gum input --width 50 --placeholder "Summary of changes")" \
-m "$(gum write --width 80 --placeholder "Details of changes")"
```
-
+
#### Open files in your `$EDITOR`
@@ -232,7 +232,7 @@ SESSION=$(tmux list-sessions -F \#S | gum filter --placeholder "Pick session..."
tmux switch-client -t $SESSION || tmux attach -t $SESSION
```
-
+
#### Pick commit hash from history
@@ -243,7 +243,7 @@ commit hash of the selected commit.
git log --oneline | gum filter | cut -d' ' -f1 # | copy
```
-
+
#### Choose packages to uninstall
@@ -268,6 +268,6 @@ We’d love to hear your thoughts on this project. Feel free to drop us a note!
Part of [Charm](https://charm.sh).
-
+
Charm热爱开源 • Charm loves open source