タグ

excellentとcolorに関するshigiryouのブックマーク (3)

  • 8 Useful and Interesting Bash Prompts

    Many people don’t think of the command line prompt as a useful element, or even pay it much attention. However, a useful prompt can change the way you use the command line, and by extension, your system. This article shows you a number of useful and interesting Bash prompts with examples. Note that we begin with the prompts themselves, then offer some further instructions on how to work with them.

    8 Useful and Interesting Bash Prompts
  • Linuxで、bash プロンプトを素敵で実用的なものに変更する

    原文は、こちらです。 大事な情報をすべて含むような bash 用のプロンプトを作成しましょう。もちろん、同時に見た目も大事です。一日のほぼ全部をコンピューターの前に座って過ごすのですから、プロンプトの見た目も大事です。設定の変更を速やかにテストしたり、即座に変更を取り消したりする方法や、情報の見た目を変更したり、ユーザーごとにカスタマイズしたり、複数行のプロンプトを作成したりする方法を学びます。 私は SSH セッション用に別プロンプトを用意しているため、異なる端末からコマンドを投入するという過ちを防止できます。もちろんサーバーが壊れていないことが前提です。~/.bashrc に以下を挿入します。 if [ -n "$SSH_CLIENT" ]; then text=" ssh-session" fi export PS1='\[\e[1;32m\]\u@\h:\w${text}$\[\e

  • git log の表示とか色をがんばる - Qiita

    (追記 2014/10/09) 履歴見るのは tig や SourceTree のが快適だなーとやはり思うので Search Result of tag:tig - Qiita なども参考にしてみてください tig だと履歴みるだけでなく stage/unstage が楽 (追記 2014/07/14) 最近は tig 使っちゃってるので、あまりこれのお世話にならなくなっている やりたかったこと 表示色に reverse を使い視覚的なアクセントとして可読性をよくしたい カラー表示するために毎回 --color を指定しないで済ませたい 結果 もう少しターミナルアプリ側の色設定で低彩度寄りに調整したほうがいい気がする。 1の解決 : オレオレ git log フォーマット を作った $ git log --pretty=format:'%C(red reverse)%d%Creset%C(

    git log の表示とか色をがんばる - Qiita
  • 1