WSL環境であればbrewを入れること
Ubuntuであれば
sudo apt install build-essential procps curl file gitWSL環境であればbrewを入れること
Ubuntuであれば
sudo apt install build-essential procps curl file gitファイル中の文字列を部分一致で検索するのが基本的な使い方
grep <string> <path|file>例えば、filedir以下からorangeを含むテキストを見つけるには以下のようにする
grep orange filedir/*| # Use custom format | |
| format = """ | |
| $username[@](bold black)$hostname$directory$git_branch$git_commit$git_state$git_metrics $git_status $time | |
| [](bold cyan)[ ](bold purple)""" | |
| scan_timeout=50 | |
| command_timeout=1500 | |
| [username] | |
| disabled = false |
| #!/bin/zsh | |
| MEMO_DIR=$HOME/memofiles | |
| mkdir -p $MEMO_DIR 2>/dev/null | |
| local -A opthash | |
| zparseopts -D -A opthash -- c: d l | |
| # cot is installed in /usr/local/bin/ |