カレントディレクトリ(.)以下から再帰的に .DS_Store ファイルを検索し、削除します。
find . -name ".DS_Store" -type f -delete- コマンドの解説
find .: カレントディレクトリ(.)から検索を開始します。
| { | |
| "tailwindCSS.experimental.classRegex": [["(`.*?`)", "(\".*?\")", "('.*?')"]], | |
| "tailwindCSS.classFunctions": ["tv"] | |
| } |
| import { NextRequest, NextResponse } from 'next/server'; | |
| import { decrypt, encrypt, updateSession } from '@/actions/session'; | |
| const BASIC_USER = process.env.BASIC_USER; | |
| const BASIC_PASS = process.env.BASIC_PASS; | |
| const AUTH_MODE = process.env.AUTH_MODE; | |
| /** | |
| * Basic認証を判定し、成功時はユーザー名を返す。失敗時はnull。 | |
| */ |
| source /Users/takai/.config/op/plugins.sh | |
| export VOLTA_HOME="$HOME/.volta" | |
| export PATH="$VOLTA_HOME/bin:$PATH" | |
| # alias shell | |
| alias pn=pnpm | |
| # alias git | |
| alias gst='git status' | |
| alias gb='git branch -vv' |
| { | |
| "scripts": { | |
| "clean": "node -e \"fs.promises.rm('script.js', {force: true})\"", | |
| "clean": "node -e \"fs.promises.rm('../dist', {recursive: true, force: true})\"" | |
| } | |
| } |
| // React Newline to break (nl2br) | |
| {this.props.text.split('\n').map((item, key) => { | |
| return <Fragment key={key}>{item}<br/></Fragment> | |
| })} |
Git Log
$ git log --pretty=format:' %Cgreen(%cr) %Cred%h - %Creset %s %C(bold blue)<%an>%Creset' --follow {path/to/file}$ git log branchA..branchB --merges --pretty=tformat:"%h %ad %s" --date=format:%Y/%m/%d