on master help sign in
translate Installation
4791f15sh-tech
doc/README-ja.md+29−23
@@ -81,21 +81,20 @@ bat -n main.rs # show line numbers (only)
81bat f - g # output 'f', then stdin, then 'g'.
81bat f - g # output 'f', then stdin, then 'g'.
82```
82```
83
83
84−## Installation
84+## インストール
85
85
86### On Ubuntu
86### On Ubuntu
87−*... and other Debian-based Linux distributions.*
87+*... や他のDebianベースのLinuxディストリビューション*
88+
89+最新の `.deb` パッケージを[こちら](https://github.com/sharkdp/bat/releases)からダウンロードして、インストールしてください:
88
90
89−Download the latest `.deb` package from the [release page](https://github.com/sharkdp/bat/releases)
90−and install it via:
91``` bash
91``` bash
92sudo dpkg -i bat_0.9.0_amd64.deb # adapt version number and architecture
92sudo dpkg -i bat_0.9.0_amd64.deb # adapt version number and architecture
93```
93```
94
94
95### On Arch Linux
95### On Arch Linux
96
96
97−You can install [the `bat` package](https://www.archlinux.org/packages/community/x86_64/bat/)
97+[Arch Linuxの公式リソース](https://www.archlinux.org/packages/community/x86_64/bat/)からインストールできます。
98−from the official sources:
99
98
100```bash
99```bash
101pacman -S bat
100pacman -S bat
@@ -103,20 +102,21 @@ pacman -S bat
103
102
104### On Void Linux
103### On Void Linux
105
104
106−You can install `bat` via xbps-install:
105+xbps-ininstall経由で `bat` をインストールできます。
106+
107```
107```
108xbps-install -S bat
108xbps-install -S bat
109```
109```
110
110
111### On FreeBSD
111### On FreeBSD
112
112
113−You can install a precompiled [`bat` package](https://www.freshports.org/textproc/bat) with pkg:
113+事前にコンパイル済みである[pkg](https://www.freshports.org/textproc/bat)をインストールできます:
114
114
115```bash
115```bash
116pkg install bat
116pkg install bat
117```
117```
118
118
119−or build it on your own from the FreeBSD ports:
119+または、FreeBSDのportsから自身でビルドすることも可能です:
120
120
121```bash
121```bash
122cd /usr/ports/textproc/bat
122cd /usr/ports/textproc/bat
@@ -125,7 +125,7 @@ make install
125
125
126### Via nix
126### Via nix
127
127
128−You can install `bat` using the [nix package manager](https://nixos.org/nix):
128+`bat` を[nix package manager](https://nixos.org/nix)経由でインストールすることができます:
129
129
130```bash
130```bash
131nix-env -i bat
131nix-env -i bat
@@ -135,13 +135,16 @@ nix-env -i bat
135
135
136You can install `bat` with zypper:
136You can install `bat` with zypper:
137
137
138+`bat` をzypperでインストールすることができます:
139+
138```
140```
139zypper install bat
141zypper install bat
140```
142```
141
143
142### On macOS
144### On macOS
143
145
144−You can install `bat` with [Homebrew](http://braumeister.org/formula/bat):
146+[Homebrew](http://braumeister.org/formula/bat)でインストールすることができます:
147+
145
148
146```bash
149```bash
147brew install bat
150brew install bat
@@ -149,8 +152,10 @@ brew install bat
149
152
150### On Windows
153### On Windows
151
154
152−You can download prebuilt binaries from the [Release page](https://github.com/sharkdp/bat/releases),
155+You can download prebuilt binaries from the [Release page],
153−or install it with [scoop](https://scoop.sh/):
156+or install it with :
157+
158+事前にビルド済みのバイナリを[リリースページ](https://github.com/sharkdp/bat/releases)からダウンロードすることができます。または、[scoop](https://scoop.sh/)でインストールすることも可能です。
154
159
155```bash
160```bash
156scoop install bat
161scoop install bat
@@ -160,7 +165,9 @@ scoop install bat
160
165
161### Via Docker
166### Via Docker
162
167
163−There is a [Docker image](https://hub.docker.com/r/danlynn/bat/) that you can use to run `bat` in a container:
168+
169+コンテナ内で`bat` を使いたい方のために[Docker image](https://hub.docker.com/r/danlynn/bat/)が用意されています。
170+
164```bash
171```bash
165docker pull danlynn/bat
172docker pull danlynn/bat
166alias bat='docker run -it --rm -e BAT_THEME -e BAT_STYLE -e BAT_TABS -v "$(pwd):/myapp" danlynn/bat'
173alias bat='docker run -it --rm -e BAT_THEME -e BAT_STYLE -e BAT_TABS -v "$(pwd):/myapp" danlynn/bat'
@@ -168,7 +175,7 @@ alias bat='docker run -it --rm -e BAT_THEME -e BAT_STYLE -e BAT_TABS -v "$(pwd):
168
175
169### Via Ansible
176### Via Ansible
170
177
171−You can install `bat` with [Ansible](https://www.ansible.com/):
178+[Ansible](https://www.ansible.com/)でインストールすることができます:
172
179
173```bash
180```bash
174# Install role on local machine
181# Install role on local machine
@@ -186,7 +193,7 @@ ansible-galaxy install aeimer.install_bat
186- [Ansible Galaxy](https://galaxy.ansible.com/aeimer/install_bat)
193- [Ansible Galaxy](https://galaxy.ansible.com/aeimer/install_bat)
187- [GitHub](https://github.com/aeimer/ansible-install-bat)
194- [GitHub](https://github.com/aeimer/ansible-install-bat)
188
195
189−This should work with the following distributions:
196+これは以下のディストリビューションで動作するはずです:
190- Debian/Ubuntu
197- Debian/Ubuntu
191- ARM (eg. Raspberry PI)
198- ARM (eg. Raspberry PI)
192- Arch Linux
199- Arch Linux
@@ -196,21 +203,20 @@ This should work with the following distributions:
196
203
197### From binaries
204### From binaries
198
205
199−Check out the [Release page](https://github.com/sharkdp/bat/releases) for
206+
200−prebuilt versions of `bat` for many different architectures. Statically-linked
207+多くの異なるアーキテクチャのためのプレビルドバージョンを[リリースページ](https://github.com/sharkdp/bat/releases)からチェックしてみてください。静的にリンクされている多くのバイナリも利用できます: ファイル名に `musl` を含むアーカイブを探します。
201−binaries are also available: look for archives with `musl` in the file name.
202
208
203### From source
209### From source
204
210
205−If you want to build `bat` from source, you need Rust 1.29 or
211+
206−higher. You can then use `cargo` to build everything:
212+`bat` をソースからビルドしたいならば、Rust 1.29 以上の環境が必要です。そして、 `cargo` をビルドに対して使用します:
207
213
208```bash
214```bash
209cargo install bat
215cargo install bat
210```
216```
211
217
212−You may have to install `cmake` and the `libz` development package
218+
213−(`libz-dev` or `libz-devel`) in order for the build to succeed.
219+`cmake` と `libz` 開発パッケージ(`libz-dev` または `libz-devel`)が正しくビルドをするためにインストールする必要があるかもしれません。
214
220
215## Customization
221## Customization
216
222