Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jy8752/shell-lessones
シェルスクリプト基本リファレンスの学習用リポジトリ
https://github.com/jy8752/shell-lessones
Last synced: 7 days ago
JSON representation
シェルスクリプト基本リファレンスの学習用リポジトリ
- Host: GitHub
- URL: https://github.com/jy8752/shell-lessones
- Owner: JY8752
- Created: 2023-10-02T15:17:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-07T13:43:05.000Z (about 1 year ago)
- Last Synced: 2023-10-07T14:32:12.418Z (about 1 year ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# シェルスクリプト学習
[シェルスクリプト基本リファレンス](https://www.amazon.co.jp/%E6%94%B9%E8%A8%82%E7%AC%AC3%E7%89%88-%E3%82%B7%E3%82%A7%E3%83%AB%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E5%9F%BA%E6%9C%AC%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9-sh%E3%81%A7%E3%80%81%E3%81%93%E3%81%93%E3%81%BE%E3%81%A7%E3%81%A7%E3%81%8D%E3%82%8B-PRESS-plus/dp/4774186945)の学習用リポジトリ
ついでに[bun](https://bun.sh/) x [zx](https://github.com/google/zx)でシェルスクリプトを書けるかも試したい
## bun
### install
```
% curl -fsSL https://bun.sh/install | bash -s "bun-v1.0.2"% bun --version
1.0.2
```現時点での最新バージョンはv1.0.3だが以下のエラーが出るのでv1.0.2を指定してインストール。
https://github.com/oven-sh/bun/issues/6035
### init
```
% bun init
``````
% tree .
.
├── README.md
├── bun.lockb
├── index.ts
├── lessone1
│ └── example.sh
├── node_modules
│ └── bun-types
│ ├── README.md
│ ├── package.json
│ ├── tsconfig.json
│ └── types.d.ts
├── package.json
└── tsconfig.json
``````
% bun run index.ts
Hello via Bun!
```### add zx
```
% bun add zx
bun add v1.0.2 (37edd5a6)installed [email protected] with binaries:
- zx57 packages installed [2.84s]
```