You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
I use the terminal for a lot of my work, so when I need to process output from other tools, I have a lot of options. I started out using shell scripts, but eventually moved on to scripting languages — first with Perl, then Ruby, with occasional Python. Lately I’ve been getting familiar with my shell (bash) again, finding new ways to stretch its usefulness as a tool on its own, without pulling in t
変数の置換をする時、今まで下記のようにやっていたのだが、bashには古く(96年のBash2.0以降)から置換機能(Pattern substitution)が備わっていた。
Z shell (zsh) provides many powerful features out of the box that can make the shell experience more efficient and productive compared to other shells like bash. Zsh includes advanced tab completion for commands like git, path expansion and replacement, right-hand prompts, spelling correction, powerful aliases, extended globbing, environment variable editing, and programmable file renaming. It als
2012-09-24 zsh導入 - kshとbash、zshの比較 職場ではksh、家ではbashを使っていたわたしですが、ついにbashに代えてzshを導入することにしました。 導入の決め手 端末間の履歴共有 コマンドオプションの補完機能 1. 端末間の履歴共有 bashとzsh bashで端末を複数枚開くと、historyコマンドで参照できる履歴が端末ごとに別々になってしまう 普段、screen(byobu)で複数の端末をいっぺんに使っているので、履歴が共有されないと不便 zshなら、設定で複数端末間の履歴を共有できる bashとksh ちなみに、kshはデフォルトで複数端末間の履歴が共有される サーバー作業だと、別の人の履歴が割り込んできて不便なことも サーバーのシェルなら、むしろ履歴共有しないbashが適当かも 2. コマンドオプションの補完機能
bash起動時に「~/.profile」が読み込まれなくなったときの原因と対処法をメモ。 Mac OS Xでパッケージ管理ツール「MacPorts」をインストールした時のこと。「~/.profile>」にMacPorts関連のコマンドにPATHを通すための記述がされているはずなのに、うまくPATHが通らないという状況に遭遇してしまいました。 結論から言うと、原因は「~/.bash_login」が存在していたから。 man bashによると、どうやらbashは、起動時に「~/.bash_profile」「~/.bash_login」「~/.profile」の順でファイルを探索し、一連のファイルの中で最初に見つけたファイルの内容だけを読み込むみたい。 以下、man bashからの引用。 When bash is invoked as an interactive login shell, or
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く