Command CheatSheet
2024-09-01#emacs
| 操作 | ショートカット |
|---|---|
| 抜ける | Control + X C |
| コマンドをリセット | Control + G |
| 保存 | Control + X S |
| 最前 | Control + A |
| 末尾 | Control + E |
| 検索窓開く | Control + S |
| 検索を上に遡る | Control + R |
| 貼り付け | Control + Y |
| 範囲選択 | Control + Space |
| 切り取り | Control + W |
| Undo | Control + _ |
| buffer clear | Control + D |
| DL | curl -OL URL |
#zsh
| 操作 | ショートカット |
|---|---|
| ディレクトリ削除 | rm -rf hoge |
| 1文字消す | Control + D |
#git
| 操作 | ショートカット |
|---|---|
| ブランチ作成 | git branch hoge |
| ブランチ切り替え | git branch hoge |
| リモートブランチをローカルに落とす | git checkout -b feature/hoge origin/feature/hoge |
| コミットを取り消す | git reset --hard HEAD^ |
| 特定のコミットを反映 | git cherry-pick hash |
| ローカルのブランチを削除 | git branch -d local branch name |
| リモートのブランチを削除 | git push origin --delete remote branch name |
#MySQL
| 操作 | ショートカット |
|---|---|
| DB選択 | Use table name |
| テーブルのクエリ | SELECT * FROM table name |
| データのリセット | TRUNCATE TABLE table name |
#VScode
| 操作 | ショートカット |
|---|---|
| Bookmarks | option + command + k |
| Terminal | control + ` |