タグ

bashに関するyzatkatamayuのブックマーク (6)

  • dotfiles.org | community for sharing dotfiles like .bashrc, .vimrc, and .bash_profile

    community for sharing dotfiles like .bashrc, .vimrc, and .bash_profileWelcome! dotfiles.org is a place to upload, download, and share your dotfiles. Upload Sign up for an account, then upload any dotfile! Download dotfiles recognizes curl and wget, so to get a dotfile in your shell try: $ curl http://dotfiles.org/~willcodeforfoo/.bash_profile Share Face it: you're proud of that 204-line .bashrc, a

  • The Best Keyboard Shortcuts for Bash (aka the Linux and macOS Terminal)

    Bash is the default command-line shell on most Linux distributions, from Ubuntu and Debian to Red Hat and Fedora. Bash is the default command-line shell on Linux, macOS, and most WSL Virtual Machines. It features various keyboard shortcuts for managing processes, controlling the screen, moving the cursor, deleting text, fixing typos, cutting and pasting, capitalizing characters, and using tab comp

    The Best Keyboard Shortcuts for Bash (aka the Linux and macOS Terminal)
  • my bashrc

    状況: いくつものホストに何回もログインする。 いくつかのホストはホームディレクトリを nfs で共有している (がすべてではない)。 ホストによってプロンプトの色を変えている (同じウインドウからあっちこっちにログインすると混乱するので)。 ちなみに emacs -nw のステータスバーの色もホストによって変わるようになっている。 ssh-agent を使っている。 GNU screen を使っている。 文字列処理をすることが異様に多い。 ## .bashrc ## Yusuke Shinyama ## ## 新しく作られたファイルのパーミッションがつねに 644 になるようにする。基。 umask 022 ## core ファイルを作らせないようにする。これも基。 ulimit -c 0 ## 環境変数の設定 # man とかを見るときはいつも less を使う。 export P

  • Bash Prompt HOWTO

    Giles Orr, giles@interlog.com$Revision: 1.3 $, $Date: 2001/09/07 17:04:58 $ 遠藤 明 <akendo@t3.rim.or.jp>v0.60j, 19 January 1999 端末と xterm でのプロンプトの作成と制御の解説で、ユーザー名、現在の ディレクトリ、時間などを表示する標準のエスケープ・シーケンスを含んで います。xterm のタイトルバーを変えたり、プロンプトに外部関数を使った 情報をいれたり、ANSI カラーを使う方法も述べます。 1. はじめに、 1.1 前提 1.2 このドキュメントの使い方 1.3 翻訳 1.4 問題 1.5 コメントや提案を聞かせてください 1.6 謝辞 1.7 著作権と責任放棄 2. BashとBashのプロンプト 2.1 Bashとは 2.2 Bash プロンプトを

  • bashのプロンプトを変更するには - @IT

    Linuxの標準シェルであるbashでは、PS1という環境変数によってプロンプトを定義している。従って、exportコマンドでPS1を変更すればいい。 デフォルトでは「[ユーザー名@ホスト名 カレントディレクトリ]」というプロンプトになっている。これを単純に「$」というプロンプトに変更するには、以下のコマンドを実行する。

  • .bash_profileと.bashrcの違いは

    ユーザーのホームディレクトリには、.bash_profileや.bashrcといったファイルがある。どんなファイルがあるかは、-aオプション付きでlsコマンドを実行すると表示される。 $ ls -a ./          .bash_history  .bashrc  .emacs           .rpmmacros  rpm/ ../         .bash_logout   .canna   .emacs-color.el  .screenrc   tmp/ .Xdefaults  .bash_profile  .cshrc   .emacs.el        .xemacs.el この中の.bash_profileと.bashrcは、共にログインしたときに実行される設定用のシェルスクリプトだが、両者にはもちろん違いがある。 .bash_profileは、ログイン時だけに

  • 1