Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
Zsh/Bash startup files loading order (.bashrc, .zshrc etc.) with 51 comments If you have ever put something in a file like .bashrc and had it not work, or are confused by why there are so many different files — .bashrc, .bash_profile, .bash_login, .profile etc. — and what they do, this is for you. The issue is that Bash sources from a different file based on what kind of shell it thinks it is in.
Prezto 今回はコマンドライン環境の話です。私は以前より oh-my-zsh を利用していましたが、テーマの調子が悪かったので Prezto に乗り換えてみました。結構快適だったので、いまは Prezto を使っています。 本稿では Zsh + Prezto で快適なコマンドライン環境を構築する方法について簡単ですがご紹介します。 Zsh + Prezto 環境を構築する 環境構築の手順については README に書いてありますので、手順通り進めれば問題なく環境づくりができると思います。なお、コマンド実行すると .zlogin .zlogout .zprofile .zshenv .zshrc のシンボリックリンクを貼るので、oh-my-zsh から乗り換える場合など、既存の Zsh 環境を引き継ぎたい場合は各設定ファイルを退避させておきましょう。 // Zsh起動 $ zsh //
** xyzshとは何か? インタラクティブシェルです。perl, rubyなどスクリプト言語からテキスト処理コマンドを輸入しています。例えば $ cat data 土井 イデオ 楠木 正信 辻 京子 $ cat data | each ( | chomp | split | lines 1 0 | join | pomch ) イデオ 土井 正信 楠木 京子 辻 という感じです。 あとはzshから便利な機能(メニュー選択、右プロンプト、コマンドラインスタック、カスタマイザブル補完)を輸入しています。 珍しいのはmigemoを使った、日本語ファイル名の補完で、例えば ~ $ ls あああいいい あああ ~ $ ls a[TAB] ~ $ ls あああ あああいいい あああ ~ $ ls あああi[TAB] ~ $ ls あああいいい という感じです。 ** 配布元 ライセンスはMITライセ
Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration. It comes bundled with thousands of helpful functions, helpers, plugins, themes, and a few things that make you shout... "Oh My ZSH!" Install oh-my-zsh 🔋 batteries included. What is Oh My Zsh? Oh My Zsh is an open source, community-driven framework for managing your Zsh configuration. Sounds bor
Zsh is a command-line interpreter for the shell programming language. It includes features like completion, context-sensitive help, and directory management. Zsh also supports customization through themes and plugins. The Zsh framework can be used to develop LGBT inclusion initiatives. It provides a structure and guidance on how to implement these initiatives effectively. The framework can be tail
(2021/12/23)本記事は「Bシェル(bash/dash/zsh)のif文について」へ移動した。
はじめに Perlbrew をインストールしたら,$HOME/perl5/perlbrew/bin/perlbrew init し, % ~/perl5/perlbrew/bin/perlbrew init Perlbrew environment initiated, required directories are created under ~/perl5/perlbrew Paste the following line(s) to the end of your ~/.bashrc and start a new shell, perlbrew should be up and fully functional from there: source ~/perl5/perlbrew/etc/bashrc For further instructions, simply run `
はじめに このガイドでは、はじめて Zsh を使う人や Zsh の便利な使い方を知らない人に向けて、いくつかの便利な設定と操作方法を紹介します。また、 Zsh についての疑問を素早く解決できるよう、マニュアルの調べ方や他のドキュメントへのリンクも盛り込んであります。 このガイドでカバーしきれていない設定や分かりやすいドキュメントをご存知でしたら、ぜひ編集リクエストやコメントでお知らせください。 設定ファイル ここでは主に普段のキー入力数を大幅に減らせるような設定を紹介します。 .zshrc ~/.zshrc は Zsh のインタラクティブシェル(ユーザーがコマンドを入力する画面)が起動した際に読み込まれる設定ファイルです。 Zsh スクリプトを実行したり、 zsh -c 'command...' でコマンドを実行したりしたときには読み込まれません。このファイルには主に Zsh の操作に関す
概要 実行時間の長いコマンドが終わったら、Mac の Notification Center (Growl にするのも可能) で通知がくる。Terminal.app と iTerm 2 に対応している。 通知の様子。30秒を超えるコマンドが通知されている。 30秒を超えないコマンドでも、失敗したら通知される。 どちらもターミナルがバックグラウンドのときのみ通知される。長いコマンドを投げてから twitter とか見てたらいつのまにか時間が経ってしまうような人に便利。 設定 1. 準備 Notification Center に通知する場合 alloy/terminal-notifier をインストールする。コマンドから Notification Center に通知をするためのアプリ。 Releases から .app をインストールしてもよいし、Download にあるように RubyG
Posted on January 31st, 2010. I spend a lot of time in a Terminal window at a command line. Up until about a month ago I was using bash for my shell. I decided to try switching to Zsh after hearing a lot of good things about it and I'm very happy with the change. A few days ago I tweeted my current Zsh prompt and the general response was: "Cool, but how did you do it?" I promised to write more abo
17 Shell Builtin Commands Some shell builtin commands take options as described in individual entries; these are often referred to in the list below as ‘flags’ to avoid confusion with shell options, which may also have an effect on the behaviour of builtin commands. In this introductory section, ‘option’ always has the meaning of an option to a command that should be familiar to most command line
一つ前のエントリーで新規 Mac にインストールしておきたいアプリのまとめを紹介しました。フロントエンド開発をしていくにあたり、アプリをインストールするだけでなく必要に応じて様々な動作環境を構築する必要がある訳ですが、これもまた何かと手間のかかる面倒な作業だったりします。都度ググっては参考になりそうな情報に倣って試みるも、その情報が古かったり構築するための前提条件が微妙に異なったりと、そっくりそのまま参考にすることが難しいことがほとんどだったりします。 現状、僕は Mac の開発環境の構築に Homebrew というパッケージ管理ツールを利用しています。海外と比較して日本での利用者が多いことから日本語の情報が多く出回っていることが主な理由です。 Homebrew(ホームブルー)は、Mac OS Xオペレーティングシステム上でソフトウェアの導入を単純化するパッケージ管理システムのひとつである
まず, 他のシェルをお使いの人にはごめんなさい. aliasコマンドの-sが使えるのは zsh 4.2.x- で, 他のシェルでは実装されていないと思います. あと, もう既に alias -s 知ってるよーって人は読まなくていいです. alias -s って何? 打ったコマンドの後ろ(suffix)を見て, 適当に宜しくやってくれるやつです. 次の例を見て下さい. ~$ echo "print ('hello, world')" > hello.py ~$ python hello.py hello, world ~$ alias -s py=python py=python ~$ ./hello.py hello, world ~$ Pythonのコードは python hello.py で実行出来ますが, お尻が py なら python を使います, とaliasしておけば, ./
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く