a cute shell that written in rust
- rust:nightly
run this command below:
chmod +x scripts/install.sh
./scripts/install.sh
default, this script add path both bash/zsh & fish
nysh will be installed into ~/.nysh, so path through it or...
-
nysh
launch nysh on ur main shell
-
help
help tool
-
la
equals to
ls -al
-
cd
change directory
-
..
equals to
cd ..
-
exit
exit the shell really safely
try importing them into each shell settings:
~/.profile
export PATH="~/.nysh" : "$PATH"
~/.config/fish/conf.d/nysh.fish
set PATH ~/.nysh : "$PATH"
# build go image
sudo docker-compose build
# launch image on background process
sudo docker-compose up -d
# exec go to command using docker envinroment
sudo docker-compose exec nysh cargo run
- rust:nightly
以下のコマンドを実行:
chmod +x scripts/install.sh
./scripts/install.sh
~/.nyshに実行可能バイナリが投棄されます
デフォルトでは bash zsh & fish にパスが通ります
nyshは自動的に~/.nyshに実行可能バイナリが投棄されます。よって、その場所をパスに通すもしくは...
-
nysh
おてもとのシェルでこれを実行するとnyshが起動します
-
help
ヘルプの表示
-
la
ls -al
-
cd
ディレクトリの変更
-
..
cd ..
-
exit
安全にシェルを終了
あなたのシェルに以下の記述を手動でおねがいします:
~/.profile
export PATH="~/.nysh" : "$PATH"
~/.config/fish/conf.d/nysh.fish
set PATH ~/.nysh : "$PATH"
# イメージをビルド
sudo docker-compose build
# バックグラウンドでイメージを立ち上げる
sudo docker-compose up -d
# go run *.go をコンテナ内で実行する
sudo docker-compose exec nysh cargo run