$ cargo install zellij : real 31m17.465s user 64m14.497s sys 2m7.747s
update
$ cargo install --force zellij
~/.cargo/bin
以下に導入される.
rustが古くて失敗
$ cargo install zellij error: failed to parse manifest at `/home/pi/.cargo/registry/src/github.com-1285ae84e5963aae/zellij-0.31.1/Cargo.toml` Caused by: invalid type: unit variant, expected string only for key `profile.release.strip` $ grep ^rust-version\ = ~/.cargo/registry/src/github.com-1285ae84e5963aae/zellij-0.31.1/Cargo.toml rust-version = "1.59" $ rustc --version rustc 1.48.0 (471d696c7 2020-12-10)
Linux x8664/aarch64, apple x8664/aarch64がある.ダウンロードして実行権を付与.
$ wget https://github.com/zellij-org/zellij/releases/download/v0.31.1/zellij-aarch64-unknown-linux-musl.tar.gz \ https://github.com/zellij-org/zellij/releases/download/v0.31.1/zellij-aarch64-unknown-linux-musl.sha256sum $ tar tvf ./zellij-aarch64-unknown-linux-musl.tar.gz $ sha56sum -c ./zellij-aarch64-unknown-linux-musl.sha256sum $ install -m 700 zellij-aarch64-unknown-linux-musl ~/bin/zellij
$ zellij --help zellij 0.31.1 USAGE: zellij [OPTIONS] [SUBCOMMAND] OPTIONS: -c, --config <CONFIG> Change where zellij looks for the configuration file [env: ZELLIJ_CONFIG_FILE=] --config-dir <CONFIG_DIR> Change where zellij looks for the configuration directory [env: ZELLIJ_CONFIG_DIR=] -d, --debug Specify emitting additional debug information --data-dir <DATA_DIR> Change where zellij looks for plugins -h, --help Print help information -l, --layout <LAYOUT> Name of a predefined layout inside the layout directory or the path to a layout file --max-panes <MAX_PANES> Maximum panes on screen, caution: opening more panes will close old ones -s, --session <SESSION> Specify name of a new session -V, --version Print version information SUBCOMMANDS: attach Attach to a session [aliases: a] help Print this message or the help of the given subcommand(s) kill-all-sessions Kill all sessions [aliases: ka] kill-session Kill the specific session [aliases: k] list-sessions List active sessions [aliases: ls] options Change the behaviour of zellij setup Setup zellij and check its configuration
上部にタブ,真ん中に端末,起動中の操作は下にヒントが表示されている
Ctrl + <g> LOCK <p> PANE <t> TAB <n> RESIZE <h> MOVE <s> SEARCH <o> SESSION <q> QUIT Tip: Alt + <n> => open new pane. Alt + <←↓↑→> or Alt + <hjkl> => navigate between panes. Alt + <+|=|-> => increase/decrease pane size.
Ctrl + <g>: ロックモード,GNU screenやtmuxなどをJellijの中で動かしているときなどに便利.
Ctrl + <p>: ペインモード
<←↓↑→> Move focus / <n> New / <x> Close / <c> Rename / <d> Split down / <r> Split right / <f> Fullscreen / <z> Frames / <w> Floating toggle / <e> Embed pane / <p> Next / <ENTER> Select pane
Ctrl + <t>: タブモード
<←→> Move focus / <n> New / <x> Close / <r> Rename / <s> Sync / <TAB> Toggle / <ENTER> Select pane
Ctrl + <n>: リサイズモード
<←↓↑→> Resize / <+|-> Increase/Decrease size / <ENTER> Select pane
Ctrl + <h>: ムーブモード
<←↓↑→> Move / <TAB> Next pane
Ctrl + <s>: サーチモード
<↓↑> Scroll / <PgDn|PgUp> Scroll page / <d|u> Scroll half page / <e> Edit scrollback in default editor / <s> Enter search term / <ENTER> Select pane
Ctrl + <s>: セッションモード
<d> Detach / <ENTER> Select pane
Ctrl + <q>: 終了※確認なしに終了するので注意
設定ファイル等で無効にしてしまってもいいかも
Ctrl + <b>: tmuxモード
<Ctrl+g> LOCK <Ctrl+p> PANE <Ctrl+t> TAB <Ctrl+n> RESIZE <Ctrl+h> MOVE <[> SEARCH <Ctrl+q> QUIT <Ctrl+o> TMUX Alt + <j|k> Move focus / <"> Split down / <%> Split right / <z> Fullscreen / <c> New tab / <,> Rename tab / <p> Previous Tab / <n> Next Tab / <ENTER> Select pane
※Tmuxとの比較
$ mkdir -p ~/.config/zellij $ zellij setup --dump-config > ~/.config/zellij/config.yaml
既定値以外の設定ファイル
zellij --config [filename]
でカスタム設定ファイルが利用できる.
環境変数 ZELLIJ_CONFIG_FILE
でも可能.
設定ファイルを使わず,初期状態で起動する: zellij options --clean
キー操作: Ctrl + <p> + <z>
コマンドライン: $ zellij --layout compact
設定: pane_frames: false
Error occurred in server: × Thread 'server_router' panicked. ├─▶ Originating Thread(s) │ 1. stdin_handler_thread: AcceptInput │ ├─▶ At zellij-server/src/route.rs:503:30 ╰─▶ called `Option::unwrap()` on a `None` value help: If you are seeing this message, it means that something went wrong. Please report this error to the github issue. (https://github.com/zellij-org/zellij/issues) Also, if you want to see the backtrace, you can set the `RUST_BACKTRACE`
Zellij起動時に発生.再度実行したら動作した.
コメント