前回の続きです。
環境
・Omarchy v3.5.0
alias c='opencode' # 'opencode' コマンドを 'd' に短縮する。
alias d='docker' # 'docker' コマンドを 'd' に短縮する。
alias r='rails' # 'rails' コマンドを 'r' に短縮する。
ターミナルの過去ログを完全に消去(printf)してから、権限スキップモードでClaudeを起動する。
alias cx='printf "\033[2J\033[3J\033[H" && claude --allow-dangerously-skip-permissions'
tmuxに再接続(attach)を試み、なければ ‘Work’ という名前で新規作成する。
alias t='tmux attach || tmux new -s Work'
Neovim起動関数:引数がなければ現在のディレクトリ(.)を開き、あればそのファイルを開く。
n() { if [ "$#" -eq 0 ]; then command nvim . ; else command nvim "$@"; fi; }
alias g='git' # 'git' コマンドを 'g' に短縮する。
メッセージ付きでコミット (例: gcm “feat: update”)する。
alias gcm='git commit -m'
全変更をステージング(add)しつつ、メッセージ付きでコミットする。
alias gcam='git commit -a -m'
全変更をステージングし、直前のコミットを修正(メッセージの書き換えや微修正に便利)する。
alias gcad='git commit -a --amend'
以上です。
▼この記事がいいね!と思ったらブックマークお願いします
