Skip to content

Commit

Permalink
Add Config docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Slackadays committed Dec 15, 2023
1 parent 14371ba commit fee25e1
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 4 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,23 @@ $ cb status | cat

<br>

<details><summary> &ensp; <b>Check Your Configuration</b> &emsp; <code>cb [[--]config|cfg]</code></summary>

<br>

Check your configuration of CB.
```sh
$ cb config
$ cb --config
$ cb cfg
$ cb --cfg
# These all work great!
```

</details>

<br>

### <img src="documentation/readme-assets/TipsAndTricks.png" alt="Tips And Tricks" height=25px />

Need to paste a funky symbol somewhere a lot? Copy it to a persistent clipboard.
Expand Down
2 changes: 1 addition & 1 deletion documentation/completions/cb.bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#/usr/bin/env bash
complete_cb() {
if [ "${#COMP_WORDS[@]}" == "2" ]; then
COMPREPLY=($(compgen -W "cut copy paste clear show edit add remove note swap status info load import export history ignore search help" ${COMP_WORDS[1]}))
COMPREPLY=($(compgen -W "cut copy paste clear show edit add remove note swap status info load import export history ignore search config help" ${COMP_WORDS[1]}))
return
fi
if [ "${COMP_WORDS[1]}" == "cut" ] || [ "${COMP_WORDS[1]}" == "ct" ] || [ "${COMP_WORDS[1]}" == "copy" ] || [ "${COMP_WORDS[1]}" == "cp" ] || [ "${COMP_WORDS[1]}" == "add" ] || [ "${COMP_WORDS[1]}" == "ad" ]; then
Expand Down
3 changes: 2 additions & 1 deletion documentation/completions/cb.fish
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set -l commands cut copy paste clear show edit add remove note swap status info load import export history ignore search help
set -l commands cut copy paste clear show edit add remove note swap status info load import export history ignore search config help

complete -c cb -f -n "not __fish_seen_subcommand_from $commands" -a cut -d 'cut something'
complete -c cb -f -n "not __fish_seen_subcommand_from $commands" -a copy -d 'copy something'
Expand All @@ -18,4 +18,5 @@ complete -c cb -f -n "not __fish_seen_subcommand_from $commands" -a export -d 'e
complete -c cb -f -n "not __fish_seen_subcommand_from $commands" -a history -d 'show clipboard history'
complete -c cb -f -n "not __fish_seen_subcommand_from $commands" -a ignore -d 'ignore content'
complete -c cb -f -n "not __fish_seen_subcommand_from $commands" -a search -d 'search clipboard content'
complete -c cb -f -n "not __fish_seen_subcommand_from $commands" -a config -d 'show CB config'
complete -c cb -f -n "not __fish_seen_subcommand_from $commands" -a help -d 'show help for CB'
1 change: 1 addition & 0 deletions documentation/completions/cb.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ actions=(
"history:show clipboard history"
"ignore:ignore content"
"search:search clipboard content"
"config:show CB config"
"help:show help for CB"
)
# only put up to one action in front of the cb command
Expand Down
2 changes: 1 addition & 1 deletion documentation/manpages/man.1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
\f[B]cb\f[R] [--](paste)[(num)|_(id)] (regex) [regexes] | (stdin)
.PP
\f[B]cb\f[R]
[--](clear|edit|export|history|help|status|show|info)[(num)|_(id)]
[--](clear|edit|export|history|help|status|show|info|config)[(num)|_(id)]
.PP
\f[B]cb\f[R] [--](load|swap)[(num)|_(id)] (clipboard) [clipboards]
.PP
Expand Down
2 changes: 1 addition & 1 deletion documentation/manpages/man.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cb(1) -- cut, copy, and paste anything in the terminal

**cb** \[\-\-](paste)[(num)|_(id)] (regex) [regexes] | (stdin)

**cb** \[\-\-](clear|edit|export|history|help|status|show|info)[(num)|_(id)]
**cb** \[\-\-](clear|edit|export|history|help|status|show|info|config)[(num)|_(id)]

**cb** \[\-\-](load|swap)[(num)|_(id)] (clipboard) [clipboards]

Expand Down
17 changes: 17 additions & 0 deletions documentation/website/content/_docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,23 @@ $ cb status | cat

<br>

<details><summary> &ensp; <b>Check Your Configuration</b> &emsp; <code>cb [[--]config|cfg]</code></summary>

<br>

Check your configuration of CB.
```sh
$ cb config
$ cb --config
$ cb cfg
$ cb --cfg
# These all work great!
```

</details>

<br>

<br>

# Action Tips and Tricks
Expand Down

0 comments on commit fee25e1

Please sign in to comment.