You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
240 B
Markdown
12 lines
240 B
Markdown
2 weeks ago
|
# Collection of command line cheats
|
||
|
|
||
|
## Shell integration
|
||
|
|
||
|
```
|
||
|
function cheat() {
|
||
|
bat -l md -p ~/cheat/cheats/"$1" --color always --theme="Dracula" | tr -d '`'
|
||
|
}
|
||
|
# autocompletion for zsh
|
||
|
compdef '_files -W "/home/panki/cheat"' cheat
|
||
|
```
|